JavaScript Redclaring The Same Variable?

preview_player
Показать описание
What happens when you declare the same variable twice in JavaScript, but in different scopes?

Prepping for your frontend interviews? Use code "conner" for a discount on my product FrontendExpert:

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

Thank you for these shorts, they’re incredible for quickly learning concepts on the go

YeetusOfHouseFetus
Автор

I think that any variable declared in a block scoop can not be accessed outside the block scoop but the name of the variable declared in a block scoop can be used outside in the global scoop

Codak_
Автор

I need a channel like this with random tid bits of knowledge for c++

alviahmed
Автор

If you look at declaration variable is let, then let work like var but it only scope it in

shyt