This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
Stuck on 28
I did this if (10 / 2 === 5) console.log(“I finished my course”) }else{ console.log(“You still have work to do”) }
and it red: SyntaxError: Syntax error
what should I do
Answer 548a1afbd3292fd3040000e9
1 vote
You forgot a bracket after (10 / 2 === 5) You also didn’t write exactly what the computer wanted. The (“I finished my course”) should be (“I finished my first course!”) It should start out like this- if (10 / 2 === 5) {
Then your entire code would be correct! It will look like this,
if (10 / 2 === 5) { console.log(“I finished my first course!”) }else{ console.log(“You still have work to do”) }
I checked it and it worked for me, let me know if it worked for you.
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
3 comments
Not me
Oops! That’s probably because I had a backwards bracket…
if (10 / 2 === 5) { console.log(“I finished my first course!”) }else{ console.log(“You still have work to do”) }
Now It should work! Worked for me, and I promise it should work for you now. :-)
(Just so you know I changed it at the top too.)