Consider an array
var myarray =
{
first_data:{"round1":"h","round2":"i",...,"round20":"z"}
second_data:{"round1":"a","round2":"b",...,"round26":"z"}
}
In order to get the value of round1 in first_data we use
myarray(firstdata).round1
So I need to loop through the rounds that are present in which i specify just round and concatenate the iteration value
for(var i=1;i<21;i++){
console.log(myarray[firstdata].round+i)
}
which must return the values of the rounds in the array