Basic JavaScript - Storing Values with the Assignment Operator

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

// Setup
var a = 7;
var myVar;
myVar = 5;
// Only change code below this line

Your browser information:

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

Challenge: Basic JavaScript - Storing Values with the Assignment Operator

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Assign the value 7 to variable a .

myVar is only part of the examples given, not what the challenge is asking for.

Also, the assignment has to be after the declaration. As also noted by the code comments // Only change code below this line

// declaration
var someVariable;

// assignment 
someVariable = "someValue";

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