Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript reverse a string

function reverseString(str) {
	let strList = str.split('');
	let reversed = strList.reverse();
	return reversed.join('');
}
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #JavaScript #reverse #string
ADD COMMENT
Topic
Name
7+2 =