How do I assign a to b?

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

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

// 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/96.0.4664.93 Safari/537.36

Challenge: Assigning the Value of One Variable to Another

Link to the challenge:

The default code assigns the value 7 to a:

a = 7;

You want to assign the value in a, which is 7, to b.

b = 7;

This is assigning the value of 7 to b, which is what you want to end up with, but you don’t want to use the value 7 itself, you want to use the value stored in a. So use the pattern above but instead of using the actual value 7, use the value in a instead.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.