In JS, what is the definition of the term " mutates "


#1

Hi, I have come across the word mutate alot, in Javascript when I was learning about arrays. Can someone please explain what that means, thank you.


#2

i would simple google the meaning of the following words:

mutate, mutating, mutation

then you see that mutating for example gets to change; alter. as definition


#3

It is like we have a house with 4 rooms and we decided to break 1 room, so now house have 3 rooms, it has been mutated.
And if you can’t break anything in that house, then it is immutable.