Basic JavaScript - Initializing Variables with the Assignment Operator

Tell us what’s happening:
Describe your issue in detail here.
how to intialize a to a value of 9
Your code so far

// Setup
var myVar;
myVar = 0;
var a;
a = 9;
a = myVar
// Only change code below this line

Your browser information:

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

Challenge: Basic JavaScript - Initializing Variables with the Assignment Operator

Link to the challenge:

Take a look at the example given in the problem and how it looks compared to your current code. Initializing a variable with a value means you define the variable name and give it the desired value on the same line.

1 Like

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