Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Reverse a string js, string reverse

const reverseString = (str) => str.split('').reverse().join('');
const reverse = reverseString('javascript');
console.log(reverse); // tpircsavaj
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #Reverse #string #string #reverse
ADD COMMENT
Topic
Name
9+1 =