Ask questions here in the forum or some other place you like to hang out. Google for more help. YouTube might help (although my experience is that a video that should take just a few minutes to explain a concept is usually 30 minutes long and most of it is noise). Or just play around with it and do your own experimenting until you figure it out. And you can always just take a break and let your brain reset.
Learning your first programming language is hard. JS is no exception. In fact, in some ways I’d say JS is harder to learn than other languages because it is constantly being enhanced and the JS ecosystem changes faster than a blinking LED.
Take your time, don’t rush. But if you don’t understand something then don’t just move on. Do something to try to help yourself understand.
- Ask for help: Don’t be afraid to ask for help when you get stuck. Sharing your code and explaining what you don’t understand can often lead to valuable insights and solutions.
- Practice, practice, practice: The more you practice coding, the more comfortable and confident you’ll become. Try to work through as many examples and exercises as you can.
- Take breaks: If you’re feeling frustrated or stuck, it can be helpful to step away from the computer and take a break. Come back to the problem with a fresh perspective.
- Learn from others: Look for code examples and tutorials from other sources to see how they approach similar problems. You can learn a lot from seeing different coding styles and techniques.
Remember that learning to code takes time and patience, so don’t get discouraged. Keep at it, and you’ll get there!