DEV Community

Discussion on: Advice for begining javascript?

Collapse
 
michalmoravik profile image
mm

Hi. I will try to use as simple English as possible with minimum tech words and tell you what I would do if I was you.

  • make sure that you know what is HTML & CSS, learning JavaScript (henceforth JS) will be then faster. If you know HTML & CSS, then don't expect that JS will be similar. Imagine HTML & CSS like drawing on the website. In HTML, you "draw" (with code) some element, let's say

    tag, and then you see it. It has no functionality. You only placed an element on the layout. On the other hand, with JS, you can add functionality for those elements. Example: imagine your lamp on your table as HTML&CSS. That lamp could be pretty nice, it has a nice color. But to light up the lamp, you would need to add functionality and that is JS.

  • I use w3schools and other similar sources (e.g. Mozilla documentation) as documentation only. That means that if you forget anything, you can go there and find it out, otherwise, don't learn from those sites if you are beginner, you won't enjoy it and learning will become boring and you will lose your motivation

  • you mentioned that it is hard to remember stuff. Of course, it is even hard for me to remember all things. Don't expect that when you read code, you will remember it. You learn to code by coding. This means that instead of reading sooo much stuff, just read one part, and then go to code it. You will come out from your comfort zone and you will need to do something. But that's how people learn to code. By trying. So just start with simple projects and only used stuff you have learned in the previous lesson. Do small steps. If you want to become a good JS programmer as soon as possible, you cannot learn everything at once. Instead, you need to code smaller parts first and code them more often, maybe every day. This way you will have a feeling that you create something, and that's what should drive you.

  • don't think about Vue.js, React, Angular. Learn to program first. To work with them, you would need to know JS. Things like Vue / React / Angular just come and go, they are not stable. The stable part is JS which you use to code inside of them. I won't lie to you, coding with React or Vue will make your life much simpler and it is fun to work with those, but to do it, you need to know JS. Just ignore those until you know JS. With JS in your hands, you can then build mobile apps, web apps, desktop apps, etc. a lot of cool stuff. So learn what is important.

  • lastly. You need to search for JavaScript crash courses, or Vanilla (pure) JavaScript to learn JS first. Don't waste your time looking at advanced code. You will lose motivation and it does not help you. Try to start with something like this.
    youtube.com/watch?v=hdI2bqOjy3c&t=...

  • this last one is very important. Code in parallel with instructor. Code with him. Open code editor and do the exact same steps as the instructor does. Without doing this, you will stay in one place and would not be able to progress.

Good luck!

Collapse
 
rvakid82 profile image
rvakid82 • Edited

Thank you for the reply. I’ll try as much as i can on my own. How do i know what to create? I don’t even know what i’m learning or what it does. I won’t be able to have an instuctor for a while, i already can’t keep up with basic free tutorials i can’t pay for an instructors class when i know i’ll fail maybe one day i can pay for a class.

Collapse
 
michalmoravik profile image
mm

I didn't mean a real instructor. I meant a youtube instructor, author of the videos. For example Brad Traversy, the youtube video I sent you. Just learn fundamentals, and then later, after a few hours of learning fundamentals you will create something simple man. Just find on youtube courses for total beginners.

Thread Thread
 
rvakid82 profile image
rvakid82 • Edited

I'll try the video, thank you. I've been spending about 3-6 hours a day for the last month with JavaScript tutorials and this is all i have to show. I hope I can find some beginner tutorials that are not over my head. w3 schools is simple enough to follow but I still have no idea what the things I'm learning are used to do.

Thread Thread
 
michalmoravik profile image
mm

What you do is unefficient.

  1. code while watching (Most important)
  2. Code very small apps first
  3. Don’t care about big, it will come later