Me Stuck @ var myAge plz help


#1

console.log(var myAge===2);
whats wrong in this??


#2

To declare a variable, you do the following:

var x = 1;

To console.log a variable, you do this:

console.log(x);

Also, keep in mind that

  • === compares two values
  • = assigns a value