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

Count correct answers alternative

In stead of a variable to count correct answers i use the answer correct array length. i think its better coding

Steven Parker
Steven Parker
243,656 Points

What course/challenge/code does this refer to?

That was on the course "JavaScript Loops, Arrays and Objects", second part at the challenge on the end

Steven Parker
Steven Parker
243,656 Points

I'm still not sure what this relates to. I might need a specific video title and time index.

But I do know that the instructor's sample solution isn't necessarily the most concise or efficient code. I think he was mainly focused on coding in a way that would be the easiest to understand for teaching purposes.

It was à great course, im not complaining