10 ms·
JavaScript’s `const` has the bigger issue that while things can’t be reassigned, they can still mutate. For example: const myArray = [1,2,3] myArray.push(4
by latexr 1y ago
JavaScript’s `const` has the bigger issue that while things can’t be reassigned, they can still mutate. For example:
const myArray = [1,2,3]
myArray.push(4)
myArray // [1, 2, 3, 4]
- stevage 1y agoIn what way is that an issue?