Answers for "get initials from full name js"

5

js get initials from name

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

Code answers related to "get initials from full name js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language