GSWJS-LEAP - 000003 - How to reverse a string in JavaScript
How to reverse a string in JavaScript? 1. Convert string into an array of characters. 2. Reverse the array 3. Join the characters to form a string 4. Do all that in a function and return the output.
How to reverse a string in JavaScript? 1. Convert string into an array of characters. 2. Reverse the array 3. Join the characters to form a string 4. Do all that in a function and return the output.