Remove an element of arary by the give the index.
let data = ["Home", "About", "Menu"];
data.splice(2, 1);
console.log(data); // ["Home", "About"]JavaScript
Remove an element of arary by the give the index.
let data = ["Home", "About", "Menu"];
data.splice(2, 1);
console.log(data); // ["Home", "About"]