DEV Community

Discussion on: Var vs Let vs Const in Javascript

Collapse
 
sruthiragupathy profile image
sruthiragupathy • Edited

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.

Collapse
 
pentacular profile image
pentacular • Edited

The array is not affected by const in either case.

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