Possible Duplicate:
Check if first letter of word is a capital letter
I want to write a function in which I pass string as argument. Then I want to find out whether the first letter of this string is capital or not. If it is capital then return true otherwise return false. How can I achieve this in javascript? Any simple demo, I will later modify according to my need.