Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JS: remove elements on array

let b = a;
a = [];
console.log(b); // [1,2,3]
Code language: JavaScript (javascript)
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #remove #elements #array
ADD COMMENT
Topic
Name
9+4 =