// User defined class Array class Array { // Create constructor constructor() { // It store the length of array. this.length = 0; // Object to store elements. this.data = {}; } }