Categories
JavaScript

JavaScript fundamentals

JavaScript has primitives, objects and functions. All of them are values. All are treated as objects, even primitives.

Categories
JavaScript

Immutability in JavaScript

Immutability is a super hot subject in modern JavaScript and the reason for that is, of course, because of the functional programming paradigm.

Immutable data is tightly connected with a functional approach where any mutation is considered as an unwanted side effect. But first, let’s dive into details of mutability and immutability.