Hi everyone,I am new in Javascript.I don’t understand how I will Assign one variable to another,I tried it but it seems I am not getting the one that represents each,I will be happy if you can be of help.Thanks
Challenge: Assigning the Value of One Variable to Another
Link to the challenge:
Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.
What have you tried so far?
You should not change code above the specified comment.
Passed
b should have a value of 7.
Passed
a
should be assigned to b
with =
.
Failed
Can you show us your current code and explain (or show us) what else you have tried?
// Setup
var a;
a = 7;
var b;
// Only change code below this line
b = 7
What you have been asked to do is to assign a
to b
. What you have actually done is assign 7
to b
.
1 Like
Oh,so that was my mistake,I will do that now,thanks.
a=b.Done that,I have passed the challenge,thanks.
Congratulations! Happy coding.
1 Like
Thanks for responding,I always make very slit mistakes in every code I write.
1 Like