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

Mutability And Immutability In JavaScript Explained In Detail

by Manik5mApril 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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Mutability And Immutability In JavaScript Explained In Detail
Manik HackerNoon profile picture
Manik

Manik

@manik

🤯 My Brain Keeps Talking, Always 📙 Love To Learn New Tech 👨🏼‍🏫 Passionate About Teaching 🤓 Nerd For Sure

About @manik
LEARN MORE ABOUT @MANIK'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Manik HackerNoon profile picture
Manik@manik
🤯 My Brain Keeps Talking, Always 📙 Love To Learn New Tech 👨🏼‍🏫 Passionate About Teaching 🤓 Nerd For Sure

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