paint-brush
Mutability And Immutability In JavaScript Explained In Detailby@manik
4,875 reads
4,875 reads

Mutability And Immutability In JavaScript Explained In Detail

by ManikApril 5th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The concept of mutability and immutability in JavaScript is essential to understand to avoid errors. Primitive types are simple atomic pieces of data in JavaScript. Reference types are not simple atomic values but are objects that are made up of multiple properties assigned to them. Reference values are objects stored in memory and references to objects instead of dedicated places in memory, unlike primitive types. Primitive values in JavaScript cannot have anything added upon to them, they can only be re-assigned, and hence all primitive values are immutable.
featured image - Mutability And Immutability In JavaScript Explained In Detail
Manik HackerNoon profile picture
Manik

Manik

@manik

L O A D I N G
. . . comments & more!

About Author

Manik HackerNoon profile picture
Manik@manik

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite