Question 28 :


#1

Wy is this simple code not correct ?

var myName="Gilbert";
if (myName.length===7)
{
console.log("I finished my first course!");
}    
else
{
console.log("nvt");
}

#2

It looks correct. What error are you getting?


#3

Semi colons aren't required at the end of lines 4 and 8.


#4

They may not be required, but they are considered a best practice.