Tomasz Drybala interview question

Differense in var, let, const.

Interview Answer

Anonymous

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.