//sample solution
function properNounCorrection(noun) {
var firstLetter = noun.toUpperCase().slice(0,1);
document.writeln(firstLetter,"<br/>");
var restOfTheWord = noun.toLowerCase().slice(1,noun.length);
document.writeln(restOfTheWord,"<br/>");
return firstLetter+restOfTheWord;
}
No comments:
Post a Comment