Is there any difference between javascript's let
, var
, and const
in terms of memory management and performance?
Keeping aside the major difference that const
variables can't be reassigned a value, does using const
actually save memory compared to let
or var
(such as javascript would assign exactly the needed amount of memory to store the value?)