<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/functions-in-javascript-2-0/0/4#
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
I fixed the function code, when I run it I get the wanted result in the console log but codeCademy says its false.
var fullName = ββ;
var name;
var firstLetter;
/*
fixName function definition should go here.
*/
function fixName(){
firstLetter = name.substring(0, 1);
name = firstLetter.toUpperCase() + name.substring(1);
fullName = fullName + " " + name;
}
name = prompt(βEnter your first name (all in lower case):β);
fixName();
console.log(βAnd your full name is:β + fullName);
<do not remove the three backticks above>