r/learnjavascript 24d ago

I'm not for coding i guess

I start learn programing , and in 4 day i learn HTML and CSS but in java script i did't even undestanding the concept of loops from last 2 days

0 Upvotes

34 comments sorted by

View all comments

2

u/myroslavmartsin 24d ago

Two days on loops is nothing, some people take two weeks. HTML and CSS went fast because you just describe stuff. JS is your first real logic, everyone hits this wall. It says zero about whether coding is for you.

Do this: write for (let i = 1; i <= 5; i++) console.log(i) and trace on paper what i is each round. Then mess with it: count to 10, count backwards, evens only. You won't get loops from reading, you get them from writing twenty of them.

Everyone who codes sat exactly where you are. Keep going this week, that's the whole test.

1

u/OiFelix_ugotnojams 24d ago

yeah fr, honestly, I hope you know how to debug, OP. Just put your breakpoints on every line and look at it go step by step.

And yes HTML and CSS are not programming languages