Changing Values Objects and Arrays, help?

So, I’m in the JS portion of the course. Currently finishing "Data Structures (Arrays and Objects) - Reading Assignment " but I noticed this section in the book:

We saw that object values can be modified. The types of values discussed in
earlier chapters, such as numbers, strings, and Booleans, are all immutable–it
is impossible to change values of those types. You can combine them and derive
new values from them, but when you take a specific string value, that value
will always remain the same. The text inside it cannot be changed. If you
have a string that contains “cat” , it is not possible for other code to change a
character in your string to make it spell “rat” .

This puzzles me because I know that you can change variables for strings.
Would someone mind explaining to me what this means? :slight_smile: