Storing Values with the Assignment Operator (what to do)

Tell us what’s happening:

Your code so far


// Setup
var a = 7;
var b =2;
var with = 5;
// 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/70.0.3538.102 Safari/537.36.

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

What are you doing with this line here? You don’t need this. So there are 2 steps to solve this challenge.

Assign the value 7 to variable a .

Assign the contents of a to variable b .

You did the first step right. Now simply assign the contetns of a to b like you just did with 7 to a.

2 Likes