AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
The Difference Between Mutating and Reversing Variables
The more I grow in programming, the less I ever want to mutate anything ever. But if something becomes something new, which it almost always does with array methods, for some reason, yeah, it needs to be assigned a new variable name. If you're reversing an array, an array, like it's this is now this same thing, but it's now sorted or whatever. It's not the same thing. And we don't need to get into this anymore than this on this show because it's going to get off the rails.