I had a apiRouter.get for check some progress, it returns info for example:
{
"1": 40
"2": 60
}
The doubt is not the API, it’s about how to show that values from array into the progress-bar.
var num = document.getElementsByClassName('number');
for (i=0; i < num.length; i++) {
console.log(num); //how can I assign each value to each progress bar?
}