Mutable means they can be changed and reassigned after initialization. Here are some commonly used ones in JavaScript:
- Arrays:
- Arrays in JavaScript are ordered collections of elements, which can be of any data type.
- Objects:
- Objects in JavaScript are key-value pairs, where keys are strings (or symbols) and values can be any data type.
- Maps:
- Maps in JavaScript are collections of key-value pairs, similar to objects, but with some differences.
- Sets:
- Sets in JavaScript are collections of unique elements, where each element can only occur once.