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


#1

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);

PLEASE ASSIST ASAP!


#2

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:


#3

Figured it out! Thanks!


#4

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