How to iterate through an array of JSON data. Can you help with the code:
var percent=(100 * this.contributed) / this.max;
percent= Math.floor(percent);
This is the logic. I need to apply this for all objects using for each
var dashboardval= [
{"contributed": 20, "max": 35 },
{"contributed": 22, "max": 35},
{'contributed': 35, "max": 35,},
{"contributed": 32, "max": 35}
];