Y
Hacker News
new
|
ask
|
show
|
jobs
by
camsjams
1107 days ago
You can't reassign constants in JS, it throws an error: Uncaught TypeError: Assignment to constant variable.
But yes you can modify objects and arrays of a constant, which is not great.