mckryall
0
Q:

reverse words in a given string

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

}
word = 'i.like.this.program.very.much'
word = 'pqr.mno'
console.log(reverse(word))
0

New to Communities?

Join the community