JavaScript: Sum 1..15 #41
| Test | Status | Details |
|---|
Ready — edit the code above and click Run or Submit.
console.log([...Array(15)].reduce((a,_,k)=>a+k+1,0));
Try solving on your own first, then reveal the official answer.
Array methods are core to JS interviews.