0

How to create an empty array in JavaScript

JavaScript
let arrayName = [];
JavaScript
// Variable array for a wider scope:
var arrayName = [];
// Local scope variable array:
let arrayName = [];
add comment
Suggest a different solution or add another example