title: Javascript .split
body: <p>This question may seem a little silly, but i just need to know.
  So here is some very basic code i wrote: </p>
  
  <pre><code>function LongestWord(sen) { 
    var longest = "";
    var check = ""; //I've even changes the value of var check into a integer and still returned the same
  
    for(var i = 0; i &lt; sen.length; i++){
      check = sen.split(" ");
    }
  
    return check;              
  }
  
  console.log(LongestWord("John Max"));
  </code></pre>
  
  <p>This is what is returned:
  <code>[ 'John', 'Max' ]</code></p>
  
  <p>Does this mean that when the <code>.split()</code> method is called on a variable, it converts it into an Array no matter which type it is?</p>