title: JSON array iteration: How to apply a function on each element of a json array in javascript?
body: <p>I'm trying to apply a javascript method f(x,y) on each element of a JSON array.</p>
  
  <p>This is my code example:</p>
  
  <pre class="lang-js prettyprint-override"><code>var jsonData = {"a":[1900,1910,1920,1930],"b":[12,19,8,55]}
  
  for (var i=0; jsonData.a.length; i++){
    f(jsonData.a[i],jsonData.b[i])
  }
  </code></pre>
  
  <p>Is it wrong what I'm doing? The code is not working..</p>