I render the for loop using variable count. Please check this example
I have 5 variable like this:
var reactionWeightage5 = 30;
var reactionWeightage4 = 06;
var reactionWeightage3 = 70;
var reactionWeightage2 = 80;
var reactionWeightage1 = 10;
i need render like this
for (var i = 1; i <= 5; i++) {
var test = reactionWeightage[i];
etc .....
}
i am getting the following error :
"reactionWeightage is not defined"
Can anyone help for this?
this['reactionWeightage' + i]