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