This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
28/28
if (“Isaak”.length < 7 ) { else(“You have a short name”) console.log(“You have a long name!” ); } I dont see what the problem is here it says syntax error!
Answer 53fd10237c82ca12f20003ae
0 votes
Hi, yes, there’s a syntax error; it should be: if (“isaak”.length<7){ console.log(“I finished my first course!”) } else{ console.log(“whatever”) } You were required to make the result of evaluating the true statement be a log to the console of “I finished my first course!” Also, note that I kept the “if” statement, and the “else” statement in their own seperate curly brackets. Hope this helps!!
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