DEV Community

Discussion on: Once and for all: const in JavaScript is not immutable

conectado profile image

I think const as an immutable pointer. You can change the value of what it points to but not the place it points to.

Disclaimer, that is just how I think about it, I don't know if it works like that internally.