Array Methods In JavaScript
Types of Array methods:
1. shift()
This method removes the first element from an array
let movies = ["ironman", "superman", "spiderman"];
movies.shift();
console.log(movies);
output:
[ 'superman', 'spiderman' ]
ironman has been removed from the sta...
nikhilkhetan.hashnode.dev3 min read
Prakash Naikwadi
Front End Developer
Great Article🚀🚀