There are times when you want to clear the array that you have already defined with entries and reuse it.
For example
Arry = [109,625,200];
How to clear the array in JavaScript?
One of the easiest way to clear the array contents in JavaScript is setting the Array Length t0 0.
Arry.length = 0;
Leave a Reply