I read the topic How do I empty an array in JavaScript?
Answer :
Very simple:
A = [];
I am interested in the comment by Daniel Baulig:
this will NOT empty the array, but create a new, empty array. This might cause problems, especially if there are other references to the array. OP: Please consider to accept Matthew's answer instead. It is the cleaner and formally correct approach. – Daniel Baulig Jan 19 '11 at 13:08
Can you tell me what problems this could cause?