What am I doing wrong on #27


#1

Ok, I am stuck here heres my code
var "myColor"
console.log("myColor".length)
and it pops up as SyntaxError: missing variable name
its probaly a stupid mistake but I just cant figure it out


#2

You're trying to declare a string as a variable.

We can't do that.

How can you make it not a string?


#3

Remove the " " from the variable and console.log("myColor".length)

should just be
var myColor = //pick a colour
console.log(myColor.length)


#4

thanks that helped, i knew i was doing something dumb


#5

5 posts were split to a new topic: 27. Hey i am stuck and this is what i have var "mycolor"