title: Javascript: Each Array
body: <p>Note: No jQuery<br>
  How could i do something like this:</p>
  
  <pre><code>var array = new Array();
  array[name] = "Tom";
  array[age] = 15;
  foreach(array as key=&gt;value){
      alert(key + " = " + value);
  }
  </code></pre>