I have a question about the example of hoisting.

Asked 2 years ago, Updated 2 years ago, 98 views

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.ㅠ<

fast-frontend javascript hoisting

2022-09-22 18:55

1 Answers

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;


2022-09-22 18:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.