Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reverse words javascript

function reverse (word) {
    word = word.split('.').reverse().join('.')
    return word

}
word = 'i.like.this.program.very.much'
word = 'pqr.mno'
console.log(reverse(word))
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #reverse #words #javascript
ADD COMMENT
Topic
Name
9+9 =