DEV Community

Discussion on: Var, let and const- what's the difference?

Collapse
 
sarah_chima profile image
Sarah Chima

While you cannot reassign the array, JavaScript allows you to update it. Personally, I think that defeats the idea of using const. If you want to declare an array that will be updated, it might be more ideal to use let.