27.Conclusion:Part 1



On line 1, create a variable myColor and give it a string value.
On line 2, print the length of myColor to the console.


It says that line one is undefined. I don't understand how.


have you created the var myColor?


You haven't declared/created the variable myColor

step 1 - create the variable myColor and give it any string value (even your name is ok)

step 2 - console.log the variable's length

var exampleVariable = 'thisIsMyName';


Thanks guys you were really helpful!


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