Problem solving skills

I’m new to programming. I joined a Boot camp for web development course. I was not able to solve problems once the concept was taught in JavaScript. How do I improve my problem solving skills? Please help.

With that general of a question, I can only give the general advice to practice. Don’t just practice performing the exercise, but actually struggle through and make mistakes.