How would I add a new variable into an array each time a user clicks a button.
For example: I would have a timer and each time a user clicks a button the current time is stored in an array.
array[0] = 2:00;
array[1] = 2:10;
array[2] = 2:43;
This would add a new key each time the user clicks a button.
Push the new value on click:
This assuming there already is an array of course named
array.