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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.