I have a question for Mr. Yamoo!
There is an example of hoisting that you used in the lecture "[4-24] Variable, Function Hoisting/Scope Chaining" at around 7:13 p.m.
When I run it, I get undefined. I think it's the same as what you've done. I have no idea why.ㅠ<
Hello NeoDahl! - ^
Press the Run Code
button below to check the results.
throughn_the_message = 'The last thing he said';
Through_the_message += 'You're a little ahead of everyone's path!'';
console.log(througn_the_message);
var througn_the_message;
The results will be as follows. Check the code~
If you suspect a typo, test it with a simple variable name.
n = 10;
n += 9;
console.log(n);
var n;
© 2024 OneMinuteCode. All rights reserved.