Operations in JavaScript with immutable objects
Let's look at how to perform operations on immutable objects in JavaScript, just like we did for arrays in this post.
We start with an object representing a person:
const person = {
name: "Filip",
age: 26,
city: "Uppsala",
}
