Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Splice in javascript

//Splice
const numbers = [3, 6, 4, 8, 9, 19, 15, 21, 45, 87];
const numberSplice = numbers.splice(0, 3);
console.log(numberSplice);
//Output: [ 3, 6, 4 ]
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #Splice #javascript
ADD COMMENT
Topic
Name
4+3 =