27. Conclusion Part 1

Help! I am typing this…

var myColor = “green”;

And the computer responds with “Oops, try again. It looks like you didn’t print the length myColor to the console!”
(Also the number five is printing onto the console… which I thought was supposed to be correct!!)

Take out that equal sign you got there… in your console.log.

Here’s the code:

myColor = “blue”

It does not work either way.

var myColor = “____”;

Try this structure, replace the blank with a color you like.

1 Like

In such a case you will have to do a Reset…

++++ reset of session *****************
under certain circumstances you can shoot your Browser in an
inconsistent state.

Therefor it is of an advantage to know that you have 2 reset facilities:

One is the use of the F5-key which does a refresh Browser


Two, select&copy your code
Then use the Reset Code button of the course-window,
then paste your code back in.

General Notes:
Always refresh the browser after making corrections:
CTRL f5 ( if on Windows or Linux)
CMD r ( if on a MAC).

I just got it!

var myColor = “yellow”;

1 Like

var myColor = “red”
console.log (myColor.length);

this works

hope it helps

var myColor =“pale Yellow”;



hey guys please tell me why my color doesn’t have parentheses im confused a little

Because it’s a variable and not a sting.

if myColor was in " " it would just be “myColor” as text.

var myColor = “blue” stores the string blue in myColor so when you call myColor later on it will display “blue” :slight_smile:

thank you so much…lol F5 like a bomb

var myColor=“blue”;
console.log (“blue”.length);


As the variable myColor has an associated string Value “blue”
you could also have used…


thank u it worked
var myColor =“pale Yellow”;