decalre an empty array in class constructor javascript code example Example: create an empty array js let arrayName = [];