Tell us what’s happening:
Your code so far
var a; a = 5; var abc; abc = a;
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36.
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36
Challenge: Assigning the Value of One Variable to Another
Link to the challenge:
You would probably have to reset your code. Only change the code below the comment as instructed. You dont need to redeclare any other variable, just assign a to b
What exactly is your doubt here? In this piece of code, var abc gets the value of a. since we have var keyword, hoisting takes place here.
var abc
a
var