Im not sure what im doing wrong any advice

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

Your code so far

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

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36

Challenge: Assigning the Value of One Variable to Another

Link to the challenge:

Hi @dameons14 !

Welcome to the forum!

I would reset the lesson.

Your solution should only be one line.
You don’t need to declare any variables.

This is incorrect.

The way that assignment works is what is one the right hand side of the = sign gets assigned to the variable on the lefthand side of the =

Your task is to take a and assign that to b

Hope that helps!

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