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

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.