javascript first letter of each word code example
Example: javascript get first letter of each word
var msg = "Name Surname a"
var acronym = msg.match(/\b(\w)/g).join('');
console.log(acronym)
var msg = "Name Surname a"
var acronym = msg.match(/\b(\w)/g).join('');
console.log(acronym)