title: javascript for() loop, split(), and array question
body: <p>Ok I've been asking alot of JS questions lately, and realized I just need to go learn it.</p>
  
  <p>Been following tutorials at <a href="http://www.tizag.com/javascriptT" rel="noreferrer">http://www.tizag.com/javascriptT</a> very simple and straightforward.</p>
  
  <p>I just want to make sure I understand this correctly. It took me a while to get it:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  var myString = "zero one two three four";
  
  var mySplitResult = myString.split(" ");
  
  for(i = 0; i &lt; mySplitResult.length; i++){
      document.write("&lt;br /&gt; Element " + i + " = " + mySplitResult[i]); 
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>-</p>
  
  <pre><code>var myString = "zero one two three four";
  </code></pre>
  
  <p>Obviously that creates a simple string variable.</p>
  
  <pre><code>var mySplitResult = myString.split(" ");
  </code></pre>
  
  <p>That splits it using " " as the delimeter, and assigns it to the mySplitResult array. Correct? Or is it not an array?</p>
  
  <pre><code>for(i = 0; i &lt; mySplitResult.length; i++){
  </code></pre>
  
  <p>Is this saying the number of values in the array? Doesn't seem like it could be saying the actual length of characters in the string.</p>
  
  <pre><code>document.write("&lt;br /&gt; Element " + i + " = " + mySplitResult[i]); 
  </code></pre>
  
  <p>This just returns mySplitResult[i] variable "i". Since i is increasing with each loop, it pulls the correct information from the array.</p>