DEV Community

loading...

Discussion on: Daily Coding Puzzles - Nov 4th - Nov 9th

Collapse
thesoreon profile image
Paul Susicky

Javascript

function arrayProduct(arr) {
    return arr.reduce((acc, val) => acc * val);
}