This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
Oops, try again. It looks like you didn't log anything!
What’s wrong with my coding below, please help???
if (7===7) { console.log=(“I finished my first course!”); }
else
{ console.log=(“long way to go!”); }
Answer 53ced5cb9c4e9da17900046f
0 votes
A semi column after a line tells the computer to do the operation “quietly” (without you seeing it). Erase the two semi columns after the console.log operations and you are good to go.
Answer 53cef7729c4e9d55c000037a
0 votes
The problem is this,
console.log=("..");
should be,
console.log("..");
2 comments
Amit Singh over 9 years
@Roy, I agree with you. However, I get new error message “Oops, try again. Your code doesn’t look quite right. Check the Hint if you need help!”
PurelySmart over 9 years
@Amit Singh I erased the semicolons from your code and it worked.
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
Wrong. The semi-colons stay. They tell JavaScript to stop reading and start interpreting and executing the statement.