What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-09 14:24:03
Clear or Reset a JavaScript Array
let aray = [1,2,3,4,5,6,7,8,9,10]; //as with most coding there are several ways you can do anything //see whichever works best for your scenario //set the array to equal a blank array array = []; //set the array's length to 0 array.length = 0; //using... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5