javascript working with arrays code example Example: array in js Click to copyfunction Array() { return []; } alert(Array(1, 2, 3)); // An empty alert box