You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By our human nature we start counting from 1 but JavaScript doesn't follow the rules. He likes to start counting from 0. So first index number of an array is 0.
If you put 5 elements then first element index number is 0 and last element index number is 4. To access the specific element of array we use array[index-number].