title: Swap the words of a string in Javascript
body: <p>I want to swap words of string in such a way that the first word is swapped with the last word ,the second word with the second last word and so on using plain javascript.
  Eg :- &quot;Secret Life is Beautiful Key&quot;
  Output :- &quot;Key Beautiful is Life Secret&quot;</p>