27, help


#1

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

var myColor = "red";
console.log=("myColor".length);

what is wrong?


#2

console.log(myColor.length);

you dont want to make myColor a string so leave it out the " "

when you call a console.log dont use an = just go straight into the brackets


#3

A post was split to a new topic: 17. What's wrong with this? Help me