text: class ArrayList {
    constructor(capacity) {
      this.capacity = capacity;
      this.array = new Int32Array(capacity);
      this.length = 0;
    }
  
    isEmpty() {
      if (this.length === 0) {
        return true;
      } else {
        return false;
      }
    };
  
    prepend(value) {
      if (this.array.length !== 0) {
        return this. *= 2;
      }
    }
    //
  
    append(value) {
  
    }
  
    setHead(index) {
  
    }
  
    access(index) {
  
    }
  
    insert(index, value) {
  
    }
  
    remove(index) {
  
    }
  
    print() {
  
    }
  }
  
  