Wed Sep 21 2022 03:47:31 GMT+0000 (Coordinated Universal Time)
Saved by @Vrushabh_123
/* In Javascript the same thing can be done using array.splice() method */ const items = [1, 2, 3, 4, 5, 6, 7]; console.log(items, "Items before splice"); items.splice(3, 0, 50); console.log(items, "Items After splice");
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments