Mutable and Immutable in JavaScript
In JavaScript, mutable and immutable are terms used to describe the nature of data and whether it can be changed after it is created. Mutable:… Read More »Mutable and Immutable in JavaScript
In JavaScript, mutable and immutable are terms used to describe the nature of data and whether it can be changed after it is created. Mutable:… Read More »Mutable and Immutable in JavaScript
JavaScript primitives data types like string, number, and boolean are immutable by default, they cannot be altered. But JavaScript objects and arrays are not immutable… Read More »JavaScript immutable arrays | Example code
JavaScript immutable objects are objects whose state cannot be changed once the object is created. You can freeze an object that no one can change.… Read More »JavaScript immutable object | Code
JavaScript strings are immutable objects means once a String object is assigned to a String reference the object value cannot be changed. You can’t change… Read More »JavaScript string immutable | Basics
JavaScript Immutable is a type of variable that can’t be changed. In JavaScript, primitive types are immutable (or unchangeable), and the reference types are mutable… Read More »JavaScript immutable | Basics