I have been attempting to utilize a JavaScript method called f(x,y) with each element in a JSON array.
Below is an example of my 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])
}
Am I making a mistake with this approach? My code doesn't seem to be functioning as expected..