Critical javascript interview question | Lexical environment | var & let in loop with settimeout

preview_player
Показать описание
Join this channel to get access to perks:

My Gear



My Youtube Channels


My Wife's Channel

Websites

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

Sir if value of i is already 3 in var declaration then how does the loop run three time and print 3, 3, 3, it should only print 3 once because as soon as i++ executes i is already 3and loop should terminate, please explain 🙏

sanyamjain
visit shbcf.ru