What is wrong with this code 27


#1

var myColor ="Blue"
console.log(mycolor.length);


#2

Javascrpt is case sensitive

Instead of:
console.log(mycolor.length);

Write:
console.log(myColor.length);


#3

JavaScript is a case-sensitive language, therefore you have to stay consistent with keyword names (variables/functions/objects etc.) throughout all code.


#4

The name of your var is "myColor", in the console.log you try to apply .length on "mycolor".
Try with console.log(myColor.length);

PS: you've forgot the ; at the end of the first line.

Sorry for my bad english.


#5

thanks lot im to try this right now