This forum is now read-only. Please use our new forums! Go to forums
Javascript 27/28 , not sure if my mistake, or a bug
Hello The task asked is :
line 3 : create a variable called myColor and pick a value for it, as a text line 4 : Display its length in the console.
so i did this :
var myColor = “blue”; console.log(myColor.length);
In the console, i do see a “4” but i cant get to the next step, it says i dont display the length in the console.
Answer 54497aa69c4e9d352c0000b6
Answer 5500c7179113cb13f500141b
Answer 544d3a778c1ccc27e200090c
-1 votes
**you forgot the parenthesis around “myColor” line 2
1 comments
Neil over 9 years
myColor does have parentheses around it on line 2. Do you mean quote marks? If so, variables NEVER have quotes around them.
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
1 comments
(“blue”) doesn’t need parentheses.