DEV Community

Discussion on: How to Reverse a String in JavaScript

Collapse
 
ironydelerium profile image
ironydelerium

It's also worth noting that, in JavaScript anyway, you can't mutate a string: by the language definition itself, strings are immutable, as they're considered primitive values. Mutation only applies to objects (where you can change the object itself).