Basic JavaScript: Initializing Variables with the Assignment Operator

Tell us what’s happening:

Your code so far


var a;
a=9;

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36.

Challenge: Initializing Variables with the Assignment Operator

Link to the challenge:

It is common to initialize a variable to an initial value in the same line as it is declared.

You’re not doing it on the same line.