I'm attempting to use a for loop in JavaScript to create an array. The goal is to have an array with 10 or more variables (var kaunt1, var kaunt2, etc...) that are filled with numbers from div tags.
I've given the code below a try, but it doesn't seem to be working. Am I overlooking something?
var arr = [];
for(var i=1; i<=10; i++) {
var kaunt[i] = parseInt(document.getElementById("A"+i).innerHTML, 10);
}