insert a number into an array javascript w3school code example Example: javascript array const arr = [1, 2, 3];