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