r/learnjavascript • • Mar 01 '26

I need help begining js

I'm currently learning css and html and was hoping to start js soon. I don't have much idea about the language and would really appreciate if someone could help me out. also how difficult is js to learn?

7 Upvotes

28 comments sorted by

6

u/azhder Mar 01 '26

JS is easy if you are having fun, it's impossible if you build up some kind of irrational hate for it.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide

4

u/pomnabo Mar 01 '26

I tried reading through text materials to learn JS, and got swiftly bored 🤪 So I pivoted to the age old advice of “just build stuff.” I found a free JS tutorial course on udemy(not an ad) and enjoyed learning through doing.

Anything I didn’t understand, I looked up.

Built 10 little micro web apps, and after completing those, I tested myself by building a new mini web app incorporating much of what I learned, while also looking up how to do other things I hadn’t learned yet.

1

u/smooth_operator101_ Mar 02 '26

Oooohh... That's kinda cool

3

u/NoChest9129 Mar 01 '26

Check out Jonas schmedtmans udemy courses

1

u/smooth_operator101_ Mar 02 '26

Okayyyy, thanks 👍🏻

1

u/SamerGoda Mar 03 '26

high recommended this comment above

1

u/okadazresh Mar 01 '26

I am in the same spot I started with HTML and CSS and currently I started JavaScript,

Once I started with variables and loops I thought it was not the right time to learn JS I told myself to master CSS before starting JS.

But please consider this that I take notes from real senior devs:

  • Don't think about hard and complexity.
  • Keep going and learn the fundamentals.
  • Practice more and more.
  • Go with the simple task.
  • Remember small wins will give you more improvements.

Happy coding,

2

u/smooth_operator101_ Mar 02 '26

Would you suggest I complete css and start js after or should I start js rn, alongside css?

3

u/okadazresh Mar 02 '26 edited Mar 02 '26

CSS will never finish because of the advanced techniques then learn the most important things then start JS without hesitation of course,

Things in CSS like:

  • Layout review (Flexbox + Grid)
  • Positioning & z-index
  • Responsive + clamp + units
  • Build 1 modal + Simple animations
  • Build 1 card grid
  • Responsive navbar

Then JS starts.

No extensions.

Learn JS but don't abandon CSS.

Happy learning dear,

1 Checkout the coding2go JS in Udemy it's about 8 hours and this is very good for someone beginner.

2 Then go with Jonas Schmedtmann JS his course is long takes 72 hours and it will bring you in deep with JS.

2

u/smooth_operator101_ Mar 03 '26

Thank you so much for the help 😭✨

1

u/Mediocre-Sign8255 Mar 08 '26

javascript.info is a really good site if you need a reference and how to use.

1

u/Mediocre-Sign8255 Mar 08 '26

CSS took a while for me to understand so that i could style my pages the way i wanted Dave Gray youtube channel has a very good class. But just don't watch build something while learning but use what he teaches.

1

u/sheriffderek Mar 01 '26

Why do you want to learn JS? Specifically? To have an interactive button? To animate something? To send form data? To have a dynamic chart? Most people blindly “want to learn js” because they think it’s the most important thing. But they don’t really know anything about it. Then they end up being not very good at html, css or js. So, I suggest you root this all in realworld practical need.

1

u/smooth_operator101_ Mar 02 '26

That is why I'm here, idk much about js and would like to know more, so that I can have a goal in mind before actually starting the learning process. I'd be glad to take suggestions if you have any. 😌

2

u/sheriffderek Mar 02 '26

JavaScript is a general programming language. Paired with additional functionality the browser provides, it can do things like change what is showing on the screen, pay attention to user interaction, and be aware of how people are interacting with the browser. If you aren't in a place where that is needed -- don't learn it yet. In fact, I'd suggest you learn PHP first. Then learning JS will be easy.

1

u/smooth_operator101_ Mar 02 '26

Php?

1

u/[deleted] Mar 02 '26

[removed] — view removed comment

1

u/smooth_operator101_ Mar 03 '26

Wait. I'm getting a little confused here. So what should I really learn after css? What do you think will be beneficial for me?

2

u/vern_prac_compute Mar 03 '26

I think what u/RealMadHouse is trying to say is that learning PHP before JavaScript may not be a good idea. Those examples cited can be quite confusing, because although they are actual examples, you would not know the context of how they are being used. So, they probably don't make much sense. The main takeaway is that making web pages using PHP does not make the web pages interactive in the same was as JavaScript does.

PHP cannot directly manipulate the HTML/CSS. So, the way that PHP can change the appearance of a web page, is basically by reloading the page again. JavaScript can change things on your HTML page without having to reload the whole page.

Suppose you wanted to show a table of data. If you wanted to sort that data by one of the columns with PHP, you would have to make the changes in the background and reload the whole page. If you used JavaScript, you can sort the table in place, without reloading the whole page. As you might guess, it is more responsive to do it the JavaScript way. But, the main thing is that they do things differently. So, learning PHP first might not really help you with learning JavaScript, if you are mainly interested in making your web pages more user-interactive.

This is why it could be a good idea to decide what you want to do with the web pages that you have been creating. For example, if you created a HTML table and styled it with CSS. Then you decided that you want to make it so that you can click on a row of the table and do something. Then, this would mean learning how to attach a listener (event handler) to the table rows, and also learn how to make that listener do something. In any kind of programming that involves a graphical user interface, one of the concepts you need to learn about is handling events. So, that is where you might choose to focus on when learning JavaScript. That way, you are learning the parts of JavaScript that will interact with the HTML/CSS that you have already been learning.

You probably know enough HTML/CSS to start learning about using JavaScript to change the appearance of the web page, and also how to allow a user of the web page to interact in some way (like press a button or click on some element). So, I think if you keep your focus narrow to start, that will make JavaScript more approachable.

2

u/[deleted] Mar 01 '26

[removed] — view removed comment

1

u/[deleted] Mar 02 '26

[removed] — view removed comment

2

u/smooth_operator101_ Mar 03 '26

It's a lot to read, but I'll be sure to take advice ✨ thanks