Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Victor Ibasco
Victor Ibasco
11,035 Points

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
210,868 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:

Ja'Quan Thompson
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Ja'Quan Thompson
Front End Web Development Techdegree Graduate 15,542 Points

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