Javascript – Output array elements infinitely
I'm trying to output array elements infinitely. I've already found another way to do this, but can you help me understand why the first element doesn't output in this code after the first iteration of array? li = [1, 2,…