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...

Discussion (0)