DEV Community

Discussion on: Daily Challenge #16 - Number of People on the Bus

Collapse
 
stephenramthun profile image
Stephen Ramthun

Nice one, although you're missing the second argument to reduce which specifies the initial value for a.

Collapse
 
tobiassn profile image
Tobias SN

According to the MDN Web Docs, that argument is optional.

Thread Thread
 
florinpop17 profile image
Florin Pop

Right :)