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

Kieran Corcoran
Kieran Corcoran
11,188 Points

JavaScript understanding

Hi,

I have been working my way through the JavaScript course for a long time now and starting to get a good understanding of variables, functions, conditional statements, loops Arrays and objects (a bit). However, when I need to combine all these elements together to create something I have no idea where to start or what to do, it’s like I have forgotten everything I know! Is this normal? As I feel like giving up.

Has anyone else gone through this and is there any hope?

Hi Keiran,

Yes it's normal. I use to finish a lesson, go off and try to think of something of my own using JS and my mind would go blank. All you need is some direction and to come up with a plan before you start. What have you been trying to do to combine all of your skills?

Andrew

4 Answers

nicholas maddren
nicholas maddren
12,793 Points

This is perfectly normal, I was in exactly the same position 6 months ago however when you start using JavaScript in actual projects everything slowly starts to become much more clear. When I first learn't the language I really struggled because with Treehouse I feel like you learn about Variables, Arrays, Objects etc before you actually use them in a project to build something actually useful, for this reason it's really easy to forget why we use certain methods.

My advice is go out there and try and develop something on the front end at first such as a little bit of interactivity to your portfolio site if you have one. Try and make little JavaScript plugins such as a LightBox. To learn JavaScript or any other language I feel like you actually need to get out there and develop something and learn from your mistakes.

As I said I was in exactly the same position, I felt like I had spent so much time learning JavaScript but did not know how to put my knowledge to action, so I slowly started adding a few interactive front end scripts to my personal site and that is when I actually started to use the language commercially.

I was always worried about sticking to best practises whilst coding and barely got anything done because of this, looking back at some of my code I feel ashamed by how bad it was however over time you learn how to make your code as DRY as possible.

As I keep saying just go out there and try to build something, the first thing you build might suck but you will always improve in the future.

Kieran Corcoran
Kieran Corcoran
11,188 Points

Thank you for your responses.

I am really relieved to know this is normal. I feel like I am spending so much time watching the videos and trying to remember everything that I don’t really get round to doing any JavaScript myself, unless it’s a code challenge.

I suppose I find it hard to actually think of something to do with JavaScript. May I ask people what you started with? I think it would really help give me structure/direction!

Hi Keiran,

No problem. My first project was to create a HTML + JS mobile application using an API to monitor servers.

Basically, I started by creating the HTML pages, and then attempted to figure out how to populate each page using JS. Once I had a jumble of infomation writing to the page, I worked on figuring out how to get the exact information I was after from each request I made to the API. You realise very quickly that you know more than you thought you did and after a little time playing around, it all starts to fall in to place.

What have you tried to do so far?

Kieran Corcoran
Kieran Corcoran
11,188 Points

Hi Dale,

Nothing as complex as that. I am just sticking to basic stuff covered in the JS Basic Course: Basic Shopping List Quiz Updating content on HTML page

I know I need to force myself to try something completely different as I am at a stage where I have a grasp of the basics, otherwise I will never progress!

When adding everything together it suddenly seems way to complex, when to use what and where, Really frustrating. Any advice?

Ben Schroeder
Ben Schroeder
22,818 Points

Try doing some exercises in Eloquent JavaScript. They're challenging, but not impossible, and it'll help teach you how to culminate all of the individual concepts you've learned.