Answers for "how to convert name to initials in javascript"

0

how to convert name to initials in javascript

const fullName = nameString.split(' ');
const initials = fullName.shift().charAt(0) + fullName.pop().charAt(0);
return initials.toUpperCase();
Posted by: Guest on September-29-2021

Code answers related to "how to convert name to initials in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language