SEI Novus interview question

(JavaScript) 1. Create a function that sums the numbers of an array.

Interview Answer

Anonymous

Jun 26, 2018

function sum(arr) { return arr.reduce((first, next) => { return first + next }); }