What and I doing wrong

Tell us what’s happening:

Your code so far


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

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

I need to assign a to b

Your browser information:

Challenge: Assigning the Value of One Variable to Another

Link to the challenge:

Hi and welcome to the forum!

This sets the contents of b to 7

This sets the contents of a to b

Tell us what’s happening:

Your code so far


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

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

I cant assign a to b still

Your browser information:

Challenge: Assigning the Value of One Variable to Another

Link to the challenge:

You are still setting the contents of a to b. The variable on the left is being changed to hold the contents on the variable on the right.