You have to get the first letter of the first name, and make sure that it is capital; first.toUpperCase().split()[0] outputs the first letter and ensures that it is capital.
function printName(first, last) {
var fullName = last + "," + first.toUpperCase().split()[0] + ".";
// "," should be ", " ; with a space
return fullName;
}
2
solved Hello, working on Practice It-Javascript