This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
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
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?
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
Yes Thank you very much
thank:)