const sum = times.reduce((a, b) => a + b, 0); const avg = (sum / times.length) || 0; console.log(`The sum is: ${sum}. The average is: ${avg}.`);