When I'm in PHP
and have dynamic variables, ex: nomeVariavel1
, nomeVariavel2
, nomeVariavel3
,
I use the following way to put in the bank:
$nomeVariavel = ${"nomeVarivavel".$contador}
How can I do exactly this in JavaScript? Passing as a parameter or in another way?