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 Object-Oriented JavaScript (2015) Constructor Functions and Prototypes Making the UI Work

Gavin Broekema
seal-mask
.a{fill-rule:evenodd;}techdegree
Gavin Broekema
Full Stack JavaScript Techdegree Student 22,443 Points

Not following.

Around 3 minutes into the video I went from completely understanding the concept and knowing exactly what I was doing, to being terribly confused and essentially typing what Chalkley is typing to get this over with. I'm certain I'm not be the only one...

Before this video I had a firm grasp over the concepts. I feel like by breaking up the program into 3 separate files in this segment, everything became terribly unorganized and difficult to follow. Besides the fact that there is little to no explanation behind what each line of code is doing to the program. Ughh.

Is there any suggestions anyone can give me as far as staying focused and "pushing through" tracks like these?

I totally agree. I understood the first three minutes, then it was beyond comprehension. And every other lesson up to this one was completely understandable, easy even. It would be better if the course were structured so that you understand each step, so there's no huge jumps like in this lesson...

3 Answers

Carlos Alberto Del Cueto Carrejo
Carlos Alberto Del Cueto Carrejo
13,817 Points

Separating an application like the one in the video serves as a very fast way to modify a function that can be used in different pages. As if it were an MVC model. It can be difficult to grasp at first, I would recommend you to try it out yourself, maybe not using the specific music app on the video but with something you build yourself, maybe something simpler. After training with that specific method it will be set in back of your mind and you will make use of it as if it were second nature. Hang in there ;)

Thanks, that's helpful, but do you have any examples or suggestions of how it actually works? Is there another treehouse video that explains it better?

Agreed, things started getting confusing around the 3:18 mark. New concepts shouldn't be an exercise left to the reader, so to speak. It's frustrating!

ETA: I found this helpful, it filled in the gaps in the video for me: https://teamtreehouse.com/community/someone-please-can-sendprovide-me-a-messagelink-with-the-explanation-of-this-method-renderinelement

Patrick Alcorta
Patrick Alcorta
4,056 Points

I would have to agree.... I feel like allot should have been explained along the way in both part 1 and part 2..... but in this case it is all going very fast.. I don't know I am very confused at this point....