This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by VhaNKNisH
over 9 years

Need help plz!

Error:Oops, try again. It looks like you didn’t print the length myColor to the console!. This is my code:

var myColor= “Red”; console.log(“myColor”.length);

Won’t work plz comment! Ty

Answer 5416849480ff3337950032f8

1 vote

Permalink

@Kaito Mikomuso, with var myColor = “Red”; you created a variable, filled with a string “Red” The course wants you to give the lenght of the string value of this variable…

  console.log( myColor.length );

Regards,Leon

points
Submitted by Leon
over 9 years

1 comments

VhaNKNisH over 9 years

Thx

Answer 543c9737631fe9de08000b3c

0 votes

Permalink

I have the same problem and I still get the error message after implementing the suggestions.

var MyColor=”blue”; console.log (myColor.lenght);

Oops, try again. It looks like you didn’t print the length myColor to the console!

points
Submitted by vecodergan
over 9 years

2 comments

Leon over 9 years

You define a variable MyColor and then you want to print the variable myColor. The Javascript interpreter is ‘case sensitive’ …

SONIA GUEVARA over 9 years

the problem is that you spelled length wrong

Answer 54167687282ae3e733002c61

-5 votes

Permalink

<3

points
Submitted by VhaNKNisH
over 9 years