title: Javascript separate string into different variables
body: <p>I am looking to take a string and find all the spaces in it and separate that into different variables. I know I could use the <code>.split()</code> but that wouldn't make new variables. I would prefer to not use jQuery or other JavaScript library but if I have to, it wouldn't be the worst thing. Thanks! </p>
  
  <hr>
  
  <p>Example, <code>John M Peters</code> would result in the variables <code>fname: John</code>, <code>mname: M</code> and <code>lname: 
  Peters</code>. </p>