Conclusion part 1


#1

SOMEBODY PLEASE HELP!
I have been ask to make a variable called 'myColour' and give it a string value then print out the length of the colour.
This is my code:

var myColour ="blue";
console.log(myColour.length);

It says my syntax is wrong. I don't see how I am wrong!


#2

I honestly don't know what lesson you are on. I just finished both React courses and didn't come across "Conclusion part 1". But here's a guess: Have you tried the American spelling (i.e., 'myColor' instead of 'myColour')?

Also, would you mind telling me where you are in the syllabus? I am wondering if I missed a lesson.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.