DEV Community

Cover image for Midnight Fun- Meme on JavaScript splice( ) 😆
Ashique Billa Molla
Ashique Billa Molla

Posted on

Midnight Fun- Meme on JavaScript splice( ) 😆

splice() method is used on javascript array to remove element.
The syntax is:
splice(start_index, delete_count(optional),item(optional))

One use case I found on twitter 😂

the image
The reply I got🤣:

The Reply

Comment what does it mean and comment your reaction on it!!

Also the splice () method can be used to add, remove, update array elements. To understand it read my tweet 👇
JavaScript splice() method

Thanks...

Top comments (0)