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

Brodey Newman
Brodey Newman
10,962 Points

Review my code please!

So I built a little vending machine application using OOP, and I would really like some constructive criticism on what I might be doing wrong. Didn't really have any trouble with building it out, but i'm not too familiar with OOP in JavaScript yet so i'm sure there are a lot of things I could be doing more efficiently.

My GitHub will be posted below, as well as the codepen to where you can view the app.

Thanks for your time.

https://github.com/brodeynewman/OOP-Vending-Machine http://codepen.io/Brodeynewman/pen/EmbZvZ

1 Answer

Thomas Nilsen
Thomas Nilsen
14,957 Points

I can probably have a look some time tomorrow.

Also, I will encourage you to post it on CodeReview as well. Chances of getting more feedback is definitely greater there.

Brodey Newman
Brodey Newman
10,962 Points

Thanks a lot! I didn't even know that existed haha. I will definitely do that.