I understand JavaScript but I encounter significant challenges when it comes to writing it myself [closed]

I’m learning JavaScript through a course, and it’s been an interesting journey. When my teacher explains the code, it all clicks for me—I get it, right there and then. But then, the next day rolls around, and it’s as if my mind resets; I stare at the screen, not knowing where to start. I’ve tried rewatching the lessons, hoping it would help more, but it feels like I’m barely making progress. Honestly, it’s been a bit disheartening, and I’m starting to doubt myself. Still, I’m not giving up just yet and would really appreciate any advice on how to tackle this challenge

i just tried rewatching the video had helped a bit but more to nothing, idk i may be stupid, but open for any advice