How to reverse a string in JavaScript
return string.split('').reverse().join('');
Making javascript guides and tutorials as I learn, please feel free to leave a comment with your own methods and resources!
Sources
=======
Chris Wellons' blog: https://nullprogram.com/blog/2012/11/15/
MDN String.split(): https://developer.mozilla.org/en-US/d...
MDN Array.reverse(): https://developer.mozilla.org/en-US/d...
MDN Array.join(): https://developer.mozilla.org/en-US/d...
#javascript #reverse #string #tutorials #guides #untitlednotepad