How to reverse a string in JavaScript

Channel:
Subscribers:
2,310
Published on ● Video Link: https://www.youtube.com/watch?v=Aq3svGpbTZY



Category:
Tutorial
Duration: 2:21
49 views
1


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/docs/Web/JavaScript/Reference/Global_Objects/String/split
MDN Array.reverse(): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse
MDN Array.join(): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join

#javascript #reverse #string #tutorials #guides #untitlednotepad







Tags:
how to reverse a string in javascript
how to reverse a string in javascript tutorial
javascript tutorial
javascritp guide
javascript for beginners
javascript string
javascript
reverse string javascript
javascript reverse string
how to reverse a string in js
untitled notepad