java primitive types are immutable code example
Example: primitive (immutable) data types:
JavaScript recognizes six primitive (immutable) data types:
Boolean, Null, Undefined, Number, String, and Symbol (new with ES6) and
one type for mutable items: Object. Note that in JavaScript, arrays are
technically a type of object.