Struggling with JavaScript

Hi,

I am completely new to programming, I am doing the full-stack course, html and css no problem, but I have started the JS section (about halfway through part 2) and although I think I understand, its feels like I’m not getting it, as a whole, I can write functions and arrays etc, but I seem to struggle knowing when and where to use what I have learnt. I am assuming it’s because this is all new to me – so my question is, would I be better off stopping with JS and learning say Python, which I understand to be more beginner friendly getting comfortable with the fundamentals generally of programming, then coming back to JS in the hope it all makes more sense when I am building something? I started building a calculator, but was constantly on AI for the JS part– unsure of how to approach it. Any advice appreciated.

Thanks

If JS is what you want to learn and your goals include a proficiency with the language, then stick with it. Check out other resources (not generative AI) when you get stuck on understanding a concept. I know it’s not fun to get stuck and feel lost! :anguished: But remember: there isn’t just one way of explaining programming concepts. Look to YT videos, the documentation, or sites like StackOverflow, GeeksforGeeks, or even books, etc. Use Web Inspector or Dev tools to look at other sites to see how they’re built.
If you want to practice JS, maybe check out the site, CodeWars. You can select any language and test your skills as you progress.

As when learning anything–take notes, take breaks, don’t beat yourself up. Learning any new language takes time, practice, repetition. Don’t fret, you’ll get there. And then when you do advance, you can help someone else who feels lost. :slight_smile:

5 Likes

I was gonna write the same kinda exact question on this forum… Im going trought the Javascript Intermediate Challenges and I cant finish even 1 by myself, even if I read some documentation… I get so frustrated that I dont even know if this is the right thing to learn.

I guess the answer we need to seek first is, why are we learning Javascript, what you wanna do with it, whats our goal for being studying all this stuff…

I would also appreciate if someone else can give more opinions about your question of changing to a more beginner friendly language will be useful or not or should we rather just stick to JS…

Hi,

Its nice to know its not just me! I have to say that following the above advice has helped (Thanks lisalisaj), I have taken time away from the course and spent time on codewars (few days) and also find chatGTP great for setting questions specific to areas I need to understand more, I also use it when I am not 100% on how to apply something from the documentation, by asking for examples and a break down of the example. This has worked for me it seems, I am currently on and almost finished the credit card checker which has gone well (it works!). I use W3 school and MDN and check on AI for clearer additional explanation if needed. I started out wanting to work towards web development, but not 100% now that’s the path I want to take but, from what I have read if I can get a good grounding in Javascript I should find other languages easier at the fundamental level so I think its defiantly worth continuing as I now have so much time invested.

P.S if you use AI - I also ask if there are any alternatives to a method etc I am using, also pasting in code and asking how a senior developer would approach it is another thing I do(this sometimes shows things I am not aware of yet and can lead down a rabbit hole so I try to stick to what I’ve been taught to get a good understanding first as I’m sure I’ll pick up certain things later, but I like to be aware.)

1 Like

Thanks for your answer, I guess as everything will just need patience. What Im doing now (for the second time) is going WAAAY back at the beginning of the course and review one by one to make sure I have a better understanding of each concept. I can see that now I understand better some concepts and I can check easier if I have any mistakes. Nobody prepared me on how hard JS was going to be hahah. But thankfully if we not in a hurry to learn, we just need to go back and re-learn.

I will take your advice on using more the other resources, havent tried Codewars, will check it out. I will work better with AI, I was trying to avoid using it as sometimes is just way to easy to let AI do the job hahaha

Thanks again! Lets do some Peer Pairing Work next if you interested. I need to go back first to get the fundamentals again but once I reach some challenges I would like us to work together.

1 Like

Great, would be good to work together sometime.

1 Like

Struggling with JavaScript can be challenging, especially for beginners. Common issues include understanding syntax, debugging errors, and grasping asynchronous programming. Seeking online resources, tutorials, or community support can help improve skills and build confidence in using JavaScript effectively.

I finished all the JavaScript courses but still didnt have a clue where to begin on a project for example, i started Python and found everything easier and much better explanation (i also didnt have any previous experience) and really needed that, it helped my understanding for JS and after the intermediate python course i tried the React course (again because i didn’t have a clue what i was doing before and stopped the course) but still didn’t understand the React course and decided to build a React app because I couldnt stand it; a calendar using the public holidays API and a weatherwidget next to it using the OpenWeather API. Used MUI library because they have pre-build components so you dont need to even write everything from scratch (which I tried initially and felt so stupid after learning that most people actually dont write everything from scratch; they use libraries!) and reinvent the wheel and every component I had explained by AI and now making my 4th project and in total I understand it much better. Thats what helped me, im also not so scared of JavaScript anymore now. For the calendar i used React Calendar library but there are many more and really good explanation, written and videos about how to use those components. Now i think its fun making something but before i dreaded even the idea of making something with JS, its not perfect but at least im enjoying it again.

Yes, but good React developers know what’s going on under the hood of MUI to make the best use of it – e.g. MUI theming. That’s why they started by building things from scratch until they developed a thourough understanding.
MUI is a great framework – well fit for software with a lot of standard GUI elements. But limited when it comes to very individual design.

So I think it makes a lot of sense to teach the basics first – and get a deep understanding of Vanilla JS before you learn React in the first place.

A non-CGPT reply would be nice…

2 Likes

I understand what you are implying but I’m quite happy with how I’ve developed my projects and am also happy with my understanding of the concepts involved in my projects. MUI theming, I’ve also worked with that and found it not difficult to override the default styles, its great.

As for the original question from arc8666651379, if switching to Python and then continue the JS course can help understand: I found that it helped me understand JavaScript better.

I’m just trying to share my path and what worked for me, was not looking for a discussion of any type.