Anyone know how to clear an array using the onclick function?
Every time I hit a "submit" button, items are saved into an empty array called boxes and displayed on the screen. In order to clear the items from the screen, i hit the "clear button, the items clear from the screen, but not from the array.
I have a function named "clear" where i delete the items from the screen and
i've tried using boxes.length = 0 or Array.clear(boxes) = ; and those didn't work (notice i use those inside the function named "clear"