DEV Community

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

Collapse
 
skhmt profile image
Mike πŸˆβ€β¬›

Const makes the reference immutable, and for primitives that means the value is immutable too.

But for Objects, the difference matters.

Collapse
 
valentinogagliardi profile image
Valentino Gagliardi

yes!