// SyntaxyourArray.splice(index,numberOfItemsTodelete)// Real exampleconstcolors=['purple','black'];// let say you want to delete purple colorcolors.splice(0,1);console.log(colors);// ['black']
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
How to delete some item from array?
You can delete by using splice method