Inside a for of
loop I would like to create a different variable (ending with the iteraction number) for each DOM element so that I can use them latter:
for ( let i of document.querySelectorAll('.formClient.error') ) {
var elem+iteractionNumber = i
}
I don't know upfront how many element I will get and I don't want to create global variables (this code snippet is to be used with a predefined limited scope and I don't want to pollute global scope).