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 trialAdrian Sanchez
Full Stack JavaScript Techdegree Student 3,160 Pointshow can I make code simpler when a challenge requires to do so but my mind goes blank for hours?
I'm really struggling to understand when and where to use the loops one of my issues is that I can't remember the correct format for what goes inside the loops like for(){}.i can spend hours scratching my head and I still won't find an answer unless I do some "investigation " or I just give up and look for the answer.
Adam VanSlyke
15,988 PointsAh, I misread. It sounds like you're trying to memorize the syntax?
I personally would not worry about memorizing syntax, but rather just make sure you understand what it's doing. Memorization will probably only happen after using the syntax over and over.
Adrian Sanchez
Full Stack JavaScript Techdegree Student 3,160 PointsAdam VanSlyke one last question lets say I have a challenge where I can use any loop. In this case, would I just go with the one I can remember and later on refine it?. I appreciate the feedback.
Adam VanSlyke
15,988 PointsI don't have enough experience to answer that correctly for JavaScript. My experience learning others things has lead me to not worry too much about the 'best possible solution' when I start learning.
Just make stuff and eventually you'll start to recognize what the best tool is for that particular job.
1 Answer
Adam VanSlyke
15,988 PointsHey Adrian,
I like to keep reference text files on my computer containing examples of commonly used JavaScript syntax.
For example -- I used a text editor/IDE called 'Atom' that allows me to quickly access a text file that has an example of a for loop inside. I quickly open that up and immediately see the for loop syntax.
Hope this helps.
Adrian Sanchez
Full Stack JavaScript Techdegree Student 3,160 PointsAdrian Sanchez
Full Stack JavaScript Techdegree Student 3,160 PointsAdam VanSlyke thanks a lot I definitely will start to take notes on atom as well since I found that text editor more effective. I am also trying to figure out a method to figure out how can I solve the challenge by using what I learned and not what I researched. in any case thanks for the help.