Other array methods will not work on strings due to their immutability, meaning once they are created, they cannot be changed. This limitation can be overcome by using a combination of .split(), array methods, and .join() to effectively modify a string. You can also substitute .split() with a spread operator.
| "cat" .split("").reverse().join("") | → | "tac" |
| [..."cat"].reverse().join("") | → | "tac" |