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! While you're at it, check out some resources Treehouse students have shared here.

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

JavaScript JavaScript Array Iteration Methods Combining Array Methods Nested Data and Additional Exploration

He said, "call reduce() method on the array" and the syntax is '.array()'

I was just thrown off. The teacher had just said and talked about using the .reduce method on the array of arrays but had proceeded to type .array() and talking as if .array is .reduce. Is it? What is going on . . . What is this new syntax ?

1 Answer

Steven Parker
Steven Parker
229,670 Points

It's an error, not a new method. He meant to type "reduce" and he fixes it at about 2:48 in the video.

I've seen this happen in a few videos. Instead of editing them out, I think they might deliberately leave teacher errors (along with the corrections) in the videos sometimes as a demonstration of how to identify and correct such issues when you encounter them yourself. Well, that and perhaps as proof that the teachers are not robots. :laughing:

While I do agree with showing the authenticity it throws me off when they do that because this syntax is already so tricky to learn. I need it perfect hahaha