Basic JavaScript - Assigning the Value of One Variable to Another

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

Your code so far

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


// Only change code below this line

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36

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

Link to the challenge:

You changed things where you shouldn’t have. Reset the lesson. Notice the comment:

// Only change code below this line

So you only want to add code below that comment and not change anything else. It’s a one line solution. Assign the value of a to b. You actually did that in the code you pasted above. You just need to get rid of all the other unnecessary changes you made.

1 Like

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