Mutability And Immutability In JavaScript Explained In Detail

Written by manik | Published 2021/04/05
Tech Story Tags: javascript | javascript-development | node-js | nodejs | ecmascript-6 | pass-by-reference | data-types | immutability | web-monetization

TLDR 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.via the TL;DR App

no story

Written by manik | 🤯 My Brain Keeps Talking, Always 📙 Love To Learn New Tech 👨🏼‍🏫 Passionate About Teaching 🤓 Nerd For Sure
Published by HackerNoon on 2021/04/05