It can solve many string oriented problems, just analyze the syntax.

str.split('.').reverse().join(" ") 
<where str is any string or sentence>   or

str.split(/,/  or  ' . '  or  '@').reverse().join(" " or  "+" or  ''."  or  "*")     <where 'str' is any string/sentence>


..................................................................................................................................................

No comments:

Post a Comment