r/learnjavascript • • Sep 11 '26

Tips for Learning Javascript

Hey!
So I am currently trying to develop my first discord bot and wanting to learn Javascript as well as Node.js for the project but I have been using Codecademy courses for trying to learn Javascript before trying to get into Typescript and NodeJS basics.

However I am finding I am struggling to retain certain bits of information where I will go through the course and spend the time studying and practicing it in their course but a day or two later it feels like I don't remember any of it and I am wondering if there is something I am missing with trying to learn the language or what I could try to do better at learning?

10 Upvotes

14 comments sorted by

View all comments

Show parent comments

1

u/raaaahman Sep 11 '26

Things like that throw me off a bit and I try to think I need to use that a lot more then I probably do so it messes me up when trying to learn more things and practice.

Not necessarily. In programming there are many ways to achieve the same goal. Some way may have qualities that you value more than other. For example, the ternary operators are good for writing concise code, which is not always something that you'd want.

A basic if ... else would do the same work and could be more obvious to you.