0

How to create an array with specific size in JavaScript

JavaScript
const arr = new Array(4);

console.log(arr.length); // 4
RUN
add comment
Suggest a different solution or add another example