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 forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #JavaScript #reverse #string
ADD COMMENT
Topic
Name
1+8 =