Tell us what’s happening:
Describe your issue in detail here.
What am i supposed to do here? I did “a = b”, and it didn’t work
Your code so far
// Setup
var a;
a = 7;
var b;
// Only change code below this line
a = 7
b = 7
a = b
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15
Challenge: Assigning the Value of One Variable to Another
Link to the challenge:
Hi @caseyhre69 !
Welcome to the forum!
I would reset the lesson.
Your answer should be one line of code.
Not three.
Your task is to assign the contents of a
to variable b
.
Take a close look at the example code again.
Take a close look at this line here.
myNum = myVar;
That line of code tells the computer to assign the contents of myVar
to myNum
.
You need to use that same logic but for a
and b
.
Hope that helps!
1 Like
Thanks ill try this out and get back to you if it works or not
1 Like
system
Closed
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.