Photo by Lisa Therese on Unsplash

When we use moderns libraries or frameworks the first important thing is to know how they work and manipulate data, in React, Angular, Svelte and in some cases Vue, we need to manipulate it in an immutable manner.

An immutable code can be explained by something that never changes, a variable cannot be modified after it is created.

Using JavaScript, we are going to see some types of data and mutable examples, understand about it and refactoring in an immutable way.

JavaScript types

To use immutability concept in JavaScript is very simple, but before we starting code it, we need to learn…

Darley Krefta

JavaScript enthusiast. React developer at @ambevtech

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store