DEV Community

Discussion on: Var vs Let vs Const in Javascript

sruthiragupathy profile image
sruthiragupathy Author • Edited on

Alright, this makes sense! Thank you for letting me know. But here 'a' remains unchanged , though u can change 'b' right , hence preserving the const array.

pentacular profile image
pentacular • Edited on

The array is not affected by const in either case.

So it's not reasonable to talk about the "const array".