5 ms·
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 con
by camsjams 3y 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.