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 JavaScript Loops, Arrays and Objects Tracking Multiple Items with Arrays Useful Array Methods

Saqib Ishfaq
Saqib Ishfaq
13,912 Points

Isn't alot to remember to make a list of items in the store and search those and check wether they in the stock or not?

and then print msgs accordingly!! only thing m thinking abt at this stage is , how do i know wot to and how to combine all i have learnt so far:/ coz i know wot everything does in the code and the reason for it, but fail to understand how do i come up with all that and combination of all to make one programme ,on my own.

Andrei Duhanes
Andrei Duhanes
14,155 Points

Welcome to programming. At the beginning you have the illusion that you understand the code but when it is time to make it your own then it really starts being difficult. The only way around it is to practice. Look for exercises and try to find the solution yourself, and if you get stuck look how others resolved it, it's a process of learning how to tackle a problem with the tools that you have (knowledge of javascript in this case). I think the most difficult part is not learning the syntax but how to think like a programmer and that takes habit and patience. So the only advice: Practice ! Good luck ..

1 Answer

Steven Parker
Steven Parker
231,269 Points

One good strategy for tackling large projects is to break it into sub-tasks, and write the code for each of the individually. This is where those object-oriented development concepts will come in very handy.

Saqib Ishfaq
Saqib Ishfaq
13,912 Points

Thanks Andrei Duhanes and Steven Parker ! i ll start doing that straight away...i spent whole day today just on the Array methods, dint wana move on and kept reading and practising instead of rushing and trying to finish the course and become a developer overnight. that wont happen i guess :) thanks for the advice , helped clearing up my mind !