Question d’entretien chez Tomasz Drybala

Differense in var, let, const.

Réponse à la question d'entretien

Utilisateur anonyme

5 nov. 2024

Var is an old statement with a global context. Let's have a block context, which is better for liquidation errors, and a const, also a block context for variables that we don't want to change.