JS Interview - Variable Scope - Question 28

preview_player
Показать описание
This episode covers the idea of variable scope and whether that can be affected by IIFEs or try catch blocks.

Рекомендации по теме
Комментарии
Автор

thank you for your effort, i appreciate your energy that you are putting to make this amazing videos to help people succeed in their careers

abderehmen
Автор

I thought that if let was never initialized, it would throw a Reference error? So why does 'one' return undefined?

paulamg
Автор

Thanks for the tutorial can you also add some algorithm question?

bikramchettri
Автор

Why the second one logs to undefined even you have changed its value to 123 in catch block

jayantsharma