I'm trying to push 1 -> 10 into my "array1" though I'm sure that it's not working.
array1 = ["123", "abc", "string", "text", "test", "ok"]
while (i <= 10){
array1.push(i)
i++
}
document.getElementById("p0").innerHTML = document.getElementById("p0").innerHTML + " | " + array[Math.floor((Math.random() * array.length))]
p0's innerhtml stays as "Random Array Item:" and does not change, though when I remove the while loop it seems to work fine, example output, "Random Array Item: | test | text | abc | abc | text | abc"