Skip to main content

Posts

Showing posts with the label unshift

Java Script Array Methods with Examples Part 1

Hey Guys, in this blog we are going to learn about JavaScript Array like what is Array, How to create Array, Methods of array with example, etc.... Let's get started...  In this part we are covering below list of topics from array.   PUSH(), POP(), SHIFT(), UNSHIFT(), SLICE(), ISARRAY(), SKIP VALUE  What is the Array  - In simple word we can say array is  collection of  items.  - In JavaScript A  Pair of square brackets  is represent as a Array.  like []   - we can specify different element in array by comma separate.  like [a b, c, d, ..., z] Array looks like below:     const arrayDeclare = [100, 'd',  45,  67] How to create Array -In Java Script we can create array using different way like spread operators, Array.of(), Array.from(), etc.. -Here we are going to look into straight-forward way of creating array.     we can also use Array constructor to create array like below   Now let's start Experiments in A