Tagged with functions

guide
Strings can be split using three built-in functions: Split() is a method that splits a String object into an array Reverse() is a method that reverses the array Join() is a method that joins an array into a string function reverseString(str) { return str.split("").reverse().join(""); } reverseString("hello"); more