My aim is to create identify a piece of code that increments a number by 1, every 1 second:
We shall call our base number indexVariable, I then want to: indexVaria
Try:
var indexVariable = 0; setInterval( function () { indexVariable = (indexVariable + 1) % 361; }, 1000}