How to Reverse a String

Learn to use the Array.from, split, reverse and join methods

Cristian Salcescu
Frontend Essentials
3 min readMay 11, 2021

--

Photo by the author

In this article, we are going to reverse a string first using the for loop and then with the array methods. In both cases, we will take into consideration also characters that do not fit in 16-bits. In the end, you can decide which implementation fits your needs.

Reverse a string using the…

--

--