javascript initialise array to length code example Example: create array initialize size javascript const array = new Array(4); array.length //4