1let str = 'John Wick'
2let firstChar = str.charAt(0)
3console.log(firstChar); // "J"
1let sentence = "The big brown fox"
2let word = sentence.split(" ")[0]
3
4console.log(word) // The
1var str = "Java Script Object Notation";
2var matches = str.match(/\b(\w)/g); // ['J','S','O','N']
3var acronym = matches.join(''); // JSON
4
5console.log(acronym)