27. Conclusion: Part 1

var myColor = “orange”
This code is wrong! PLEASE HELP!!!

1 Like

Your code has everything right except that you don’t need the “orange”.length on line 2.I hope this helped you good luck!

variables are containers for your value.
you stored “orange”; inside a variable “var myColor”
There’s no need to write “orange.length” again.

Although your code should run ordinarily, it does not comply
with the requirement of the chapter, so you have to make sure you
are follow the instructions.

var myColor = “orange”;
Your code should easily run like this…

1 Like

I do not know what i did wrong…

Please check the syntax on console.log. If you’ve forgotten you can review that lesson here.

I do not know, sometimes proper input causes “Ooops, try again”
console.log(myColor.length) leaded to “console log is not a function”

thanks anyway.

@cloudrockstar82866, did you get that message in this specific exercise? If yes, was the only thing you changed console.log = (myColor.length) --> console.log(myColor.length);?

If yes, please try refreshing the page and running the program again (after making sure the change is still there). Sometimes once you use code improperly the browser remembers it even after you edit your program and that might be what happened here.

A post was split to a new topic: 27. Why isn’t this working?

Your console.log syntax is wrong.
“=” should not be there
is should be be console.log(myColor.length); ---------------------------->see no “=” sign.