In my object
obj.resposta1
obj.resposta2
obj.resposta3
obj.resposta4
how access the values of each inside a
for ( var int = 1; int < 5; int++)
?
Thanks, Celso
In my object
obj.resposta1
obj.resposta2
obj.resposta3
obj.resposta4
how access the values of each inside a
for ( var int = 1; int < 5; int++)
?
Thanks, Celso
Try this:
for ( var int = 1; int < 5; int++){
obj['resposta'+int];
}