Problem please help

Tell us what’s happening:
a should be assigned to b with =.What does this mean

Your code so far


var a=7
var b=7
// Setup
var a;
var b = 7;

// Only change code below this line

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 6.0.1; SM-G532F Build/MMB29T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Mobile Safari/537.36.

Challenge: Storing Values with the Assignment Operator

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

In the example you can see that var b is assigned the value of 2
var b = 2
In the same way, you can assign a variable the value of another variable. For example,
var name = 'Robbie'
var firstName = name
If I were to console.log(firstName) it would print Robbie

1 Like