Basic JavaScript - Assigning the Value of One Variable to Another

Tell us what’s happening:
Describe your issue in detail here.
the code keeps saying ( a should be assigned to b with = )
please tell me what is wrong here
Your code so far

// Setup
var a;
a = 7;
var b;
b = 7;
// 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/ Safari/537.36

Challenge: Basic JavaScript - Assigning the Value of One Variable to Another

Link to the challenge:

You don’t want to set b to 7. You want to set b to what is currently in a. The point of this challenge is to learn that you can assign the value in one variable (a in this case) to another variable (b in this case) directly through the variable name, without having to know what is in a.

not quite correct, but instead you will have to use that other variable name perhaps reading through instruction would help, lets read from it

Assign the contents of a to variable b

address that change and it should be alright, happy learning :slight_smile:

it still did not work
please explain better

Please show me your updated code.

To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.