DEV Community

loading...

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

Collapse
conectado profile image
Conectado

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.