Difference between let, const, and var #javascript

preview_player
Показать описание

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

Let and var aren't exactly the same. A variable declared with let is block-scoped, while declared with var is function-scoped.

omarashraf