thewebspark.com
Reversing a string in 3 ways using JavaScript
There are three popular ways you can reverse a string in JavaScript. Solution #1 – Using S-P-J (Split-Reverse-Join) Split the string into array of characters using split() function Reverse th…