How to reverse a string in JavaScript

In JavaScript there are many ways to reverse a string. Although its not a very tough task but here I am sharing some of the easy tricks to do that. And in this lesson we will learn how to reverse a string in JavaScript.

Reverse a string in JavaScript

1. In-built functions


2. Decrementing for-loop with concatenation


3. Incrementing/decrementing for-loop with two arrays


4. Decrementing while-loop with concatenation and substring


5. Recursion with substring and charAt


6. Internal function recursion