This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
almost 10 years

27/28 how do you make string value?

var myColor = “Blue”; “myColor”.length;

on line 1 create a variable and give it a string value

How do you make a string value? 27/28

Answer 5354c44880ff3360a90042b5

0 votes

Permalink

Hello, the variable names are not written in quotes, therefore “myColor” is incorrect.

In the explanation of exercise you can read:

console.log() Prints into the console whatever we put in the parentheses.

You should use console.log(myColor.length); instead of "myColor".length;

Do you understand?

points
Submitted by Gabriel La Rotta
almost 10 years

2 comments

Yes Thank you very much

thank:)