title: JavaScript - should return an array by breaking up the input string into individual words
body: <p>I can't find a solution for this question: a function should return an array by breaking up the input string into individual words. For example "John Smith" should be returned as ["John", "Smith"].</p>
  
  <p>I have:</p>
  
  <pre><code>    var myArray = new Array();
      myArray[0] = "John Smith";
  
      function breakingName() {
        var fullName = myArray[0];
        var splitting = fullName.split(" ");
        return splitting; // not sure why but it doesn't resolve the above challenge 
      }
  
      myData = new Object();
      myData.fullName = breakingName();
  </code></pre>
  
  <p>Thanks for your help.</p>