That's alright, struggling is part of the process of learning and that means you're in a good path. Just continue and don't stop. Below are the tips:
- Make sure you have a solid understanding of the fundamentals of JavaScript. Concepts like variables, data types, loops, and conditionals are crucial. try to go to https://www.w3schools.com/js/default.asp
- When faced with a coding challenge, break it down into smaller, more manageable tasks.
- Practice is key to improvement. Work on small coding exercises and challenges regularly to reinforce your understanding of JavaScript concepts.
- Start with simple projects
- Get comfortable with reading documentation
- Share your code with others, whether it's through online communities
- Join Coding Communities
- Stay Patient :)