Reverse String v5

Reverse String v5

Reversed String is when we reverse a string or a word in a sentence and then return the whole string with reversed letters. ___

##For Example
‘this is a string of words’ => ‘sith si a gnirts fo sdrow’
‘Coding JavaScript’ => ‘gnidoC trircsavaJ’

##




function reverse2(str){
  return str.split('').reverse().join()

}
console.log(reverse("Hi i am emir"))


comments powered by Disqus