Why can my JavaScript const array still have items added to it?
TechnologyMy practice list uses `const kit = ["brush"]`. Later, `kit.push("paper")` adds paper successfully. I thought const meant the list couldn't change, so I assumed the browser was ignoring the declaration.
MDN distinguishes a constant binding from the contents of an object or array, which can still be changed. MDN's const reference
What should I decide if the kit list is meant to grow as people add supplies? I want to understand what const protects before replacing every declaration or assuming it makes the data read-only.