This forum is now read-only. Please use our new forums! Go to forums
28/28 Results saying I haven't logged anything and the statement is in the console
Here is my code:
if (“Steph”.length = 5) { console.log = “I finished my first course!”; } else { console.log = “Incorrect”; }
Instructions say that the result of evaluating the statement is a log to the console of “I finished my first course!”. THe statement is showing in the console, and I am still getting an error message.
Any insight appreciated!
Answer 5561530a9113cbdd2f0000b2
Answer 5562a30276b8fe701500091d
0 votes
I was having the same problem too, but finally got it to work:
if (1 + 2 ==3) { console.log(‘I finished my first course!’); } else { console.log(‘False!’) }
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
I am having the same problem