create array with specific size javascript

JavaScript
new Array(4);
Source

Also in JavaScript: