Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Amandeep Pasricha14,932 Points
Did we need to specify the default value of the accumulator to be equal to ""?
For example, we write [...arr...curr],---> the initial value of the accumulator is , but wouldn't it be okay to omit the initial value so that by default, the initial value is one the inner rays? Wouldn't that be fine?
Because at the end of the day you just want one array all values separated by commas.
Steven Parker228,077 Points
If you don't supply an initial value, the operation will start with the first element in the accumulator, so the accumulator would not be an array.