r/learnprogramming • • Nov 05 '25

Having trouble writing the code

I am efficient in HTML/CSS and I can read JavaScript really well. But I cannot for the life of me write it. I am doing these tutorials on objects, loops, arrays, and functions and when it gives me a task to complete I can't barely figure out where to start or how to write it out.

But when I see the completed code I understand what it is doing. I can read it easily and it is driving me insane. I have no idea how to wrap my head around these JavaScript codes to write them myself.

25 Upvotes

31 comments sorted by

View all comments

Show parent comment

3

u/manrajjj9 Nov 05 '25

Solid advice! Repetition really helps solidify concepts. Also, try breaking down problems into smaller parts so it's less overwhelming. You got this!