HELP! Lesson 24: Variables: need help w/ syntax


On lesson 24, when I finish coding and try to submit, it claims there is a syntax error.

The following is my exact code:

console.log (var myAge === 12);



You can't assign a variable inside of a console.log() statement, so you need to assign myAge to something on a line before the log. Then you can console.log(myAge);
I hope this helps! :slight_smile:


Figured it out! Thanks!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.