declare blank array and assign value into for loop in js code example Example: create an empty array js let arrayName = [];