Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove id from array javascript

const drinks =  ['Cola', 'Lemonade', 'Coffee', 'Water'];
const id = 2;
const removedDrink = drinks.splice(id,  1);
Source by ultimatecourses.com #
 
PREVIOUS NEXT
Tagged: #remove #id #array #javascript
ADD COMMENT
Topic
Name
8+8 =