Reverse string without using any temporary variable | Reversing a string using reverse ( ) ; Reverse str [ beign . . end ]
function reverseString ( str ) { return str . split ( " " ) . reverse ( ) . join ( " " ) ; } var str = ( " " ) ; document . write ( reverseString ( str ) ) ;