Define a variable a with var and initialize it to a value of 9

Tell us what’s happening:

Your code so far


var a;



Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36.

Challenge: Initializing Variables with the Assignment Operator

Link to the challenge:

What you have done is to declare variable a. You now need to initialize it ie give it a value.

You need to use the “=” sign and then give it a value afterwards.

Add the value to your variable.

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