1. Introduction


After completing this module, you are expected to:

      • Understand how to add/remove element/s in an array;
      • Use common method such as pop(), push(), shift(), unshift() and splice() to add/remove element/s in an array; and
      • Differentiate arrays with objects.

(Source: https://imgur.com/r/programmerhumor/RfutaBk)

          In the previous lesson, you were able to learn how to declare and assign values to an array. An array is a collection of values. These values are known as elements. The elements are positioned according to their index. The index of an array starts with 0.

          For this lesson, you will learn common properties and methods that can be used to manipulate arrays.