If your version of CodeHS supports ES6 features, you can use a more concise forEach loop:
"9.6.7 Cars" isn't a bug in the curriculum; it is a feature. It is the first time a student realizes that programming isn't about memorizing answers, but about modeling relationships.
Disclaimer: This article is for educational purposes. Always abide by your school’s academic honesty policy. Use these solutions to learn, not to cheat.
This article will not simply hand you a line of code to copy-paste. Instead, it will serve as a comprehensive guide to understanding the logic behind the solution, ensuring that when you write your code, you understand exactly how it works.