This forum is now read-only. Please use our new forums! Go to forums
I don't understand why the box shows the correct answer but says I didn't use the correct string
if (‘Wondering when I complete this course!’) {
console.log(‘I completed my first course!’); } else { console.log(‘Not yet!’); }
Answer 54418886282ae3fa9f00010d
0 votes
The only instruction is that the result of evaluating the statement is a log to the console of “I finished my first course!”
Your if statement doesn’t really look like a conditional (though for reasons you will soon learn, it is still a boolean, true
so will branch to the correct code block). Set that string to the provided text and you should be good to go.
.
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
Thank you!!