Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

Given a string, reverse each word in the sentence

function wordsReverser(string){
return string.split("").reverse().join("").split(" ").reverse().join(" ")  
}

console.log(wordsReverser('New string, same results.'));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Given #reverse #word #sentence
ADD COMMENT
Topic
Name
7+2 =