Is it possible in Javascript to find out if the first letter of a word is a capital letter?
Using the match method of the string object prototype:
match
const word = 'Someword'; console.log(word.match(new RegExp(/^[A-Z]/)) !== null);