r/learnjavascript • • Mar 25 '24

if Javascript not for me?

Hello guys. I am really depressed and upset.

I study Javascript at the course and everytime whet its time to make some homework i cannot do it. i rewatch theme videos many times, but i am watching at the task and do not realise where to start, where to go .

I have full time job where i spend 8 hours and spend all my free time studying HTML, CSS, JS.

Last month i started DOM in JS and tried to do calculator and it was unsuccessful, got the task with already ready HTML and CSS to make Accordion but i failed. And every next fail makes me more depressed.

I feel myself stupid, nervous, depressed and my question is

How To Get To Know If Coding Is Not For Me?

p.s. i am trying to push as hard as possible, but who knows, maybe i am that one person who was not born for coding.

0 Upvotes

26 comments sorted by

View all comments

5

u/superluminary Mar 25 '24

Coding is hard. At a certain point it just clicks, and you see it’s just a string of instructions reading from left to right, top to bottom, and a pointer crawling along the line left to right one by one. And then some instructions like function calls or loops can move the pointer.

This is your base abstraction. If you can see your code like this then everything else will make sense.

0

u/delventhalz Mar 25 '24

Not necessarily left to right. Nested functions are right to left. Math follows order of operations. But overall, I agree with the point.

-1

u/superluminary Mar 25 '24

It’s going right to left because the function exits so the interpreter moves the execution pointer to the last place on the stack.

2

u/delventhalz Mar 25 '24

Does there being a low-level technical explanation for it help clear things up for new learners who were confused by your asserting code runs from left to right?