how to put the numbers in the array javascript code example Example: adding numbers in an array javascript console.log( [].reduce((a, b) => a + b) )