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
