Storing Values with the Assignment Operator Help ME

Tell us what’s happening:

Your code so far


// Setup
var a;
var b = 2;

// Only change code below this line
var a = 7;
var b = 7;
var a = b;


Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/storing-values-with-the-assignment-operator/

Man a,b are already declare as var
now
assign a=7;
b=a;

1 Like

[spoiler] var a;

var b = 2;

// Only change code below this line

a=7;

b=a;[/spoiler]

The [spoiler] and [/spoiler] tags need to be on their own line in order to work.