Quantcast
Channel: arr – CODE SNIPPETS
Viewing all articles
Browse latest Browse all 5

How to empty an array in Javascript

$
0
0
To empty an array in Javascript you can use the following methods. Sample Javascript This code will set the variable A to a new empty array (take care if you have references to the “old” array). or This will clear the existing array by setting its length to 0. or Working, but not recommended for […]

Viewing all articles
Browse latest Browse all 5

Trending Articles