Question: how to check if a string starts with a capital letter javascript?
Answer: Define a Function checkCharType(). ... 
U for uppercase; L for Lowercase ; N for number.
Use the charCodeAt() method to get the character code of the first character.
Using if Statement , which check within what range of values the character code falls.