this post was submitted on 03 May 2025
10 points (91.7% liked)

Programming

19957 readers
304 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

Does anyone know any courses for web javascript? like youtube courses and for web javascript, i mean writing js in script tags, using document and window, and intergrating backend with frontend no nodejs or stuff like that. Just javascript, being used in a script tag, being used to dynamically manipulate elements, the DOM, and such. Most tutorials I found was just, explaining how js works, i know how it works, I want to know how to do the communication between front-end and back-end.

[EDIT] I found one person, and while I would like it if you could tell me more courses, i will link his videos, Traversy Media did some videos on Javascript DOM, which basically does what I asked for, i made a playlist: https://www.youtube.com/playlist?list=PLDmZtFPxsV268gyN8XBTgXiVVRXtIRf2o

if for whatever reason the playlist goes down, just search for him. But I would like to hear about alternatives.

top 8 comments
sorted by: hot top controversial new old
[–] sacredfire@programming.dev 1 points 5 hours ago* (last edited 5 hours ago)

The Odin Project has a whole section dedicated to only front end js. But that might be a bit of overkill but they will cover everything you requested.

If you’re mainly interested in how communication between the front end and the backend works using JavaScript, I would look into rest APIs and the browser’s fetch API specifically.

[–] Dunstabzugshaubitze 1 points 7 hours ago

not a course but a book Eloquent Javascript, especially chapters 13 to 19.

The Book is about plain JavaScript and a big chunk of it is about javascript in Websites.

[–] Feyd@programming.dev 7 points 19 hours ago (1 children)

I'm not totally sure if this is accurate but it sounds like you're wanting to learn front end dev basics?

If so, MDN might be a reasonable place to start. https://developer.mozilla.org/en-US/docs/Learn_web_development

[–] Redkey@programming.dev 3 points 17 hours ago

MDN is great, especially for finding current best practice, but I've always found their material much more useful for reference once I'm already familiar with the general usage of whatever I'm trying to use. I often find it difficult to get to grips with something new just with MDN.

I usually go read W3Schools first. It's mostly a bit out of date, but not so much that it's useless, and I find the tutorials much easier to digest. Once I'm comfortable with the basics, I switch to MDN to get up to speed.

And OP, it sounds like you're already wary of this, but don't let yourself be tricked into using a hodge-podge of libraries for every little thing. A lot of JS programmers will tell you that you "need" some library or other to provide a function that you can often replicate with just two or three lines of raw JS, if you know what you're doing.

I think the JS library addiction stems from the bad old days of browser incompatibility, when almost everything had to be wrapped in layers of complex compatibility shims.

[–] JakenVeina@lemm.ee 1 points 13 hours ago* (last edited 13 hours ago)

Honestly, if you're having trouble finding stuff for vanilla JS, I'd recommend looking at jQuery. Not that you should USE jQuery, necessarily, but the library is basically a giant wrapper around all the native JS APIs, so the approach to building stuff is essentially the same: it all focuses on tracking and manipulation of DOM elements.

I do vanilla JS (actually TypeScript) dev at work, daily, and that was my big takeaway from spearheding our team's migration from jQuery to vanilla TypeScript: I honestly don't know what benefit jQuery provides, over vanilla, because all the most-common jQuery APIs that we were using have a 1:1 native equivalent.

We do also use 2 third-party libraries alongside vanilla, so I'l mention those: require.js and rx.js. Require you probably don't need, with modern JS having bundling and module support built-in but we still use it for legacy reasons. But rx.js is a huge recommend, for me. Reactive programming is the IDEAL way to build GUIs, in my opinion.

[–] taaz@biglemmowski.win 2 points 18 hours ago* (last edited 18 hours ago)

Not a frontend dev but whenever I need to make something web, I just use Bootstrap. I believe that was the way to do web UIs after jQuery and before all the big frameworks.
So, maybe look into bootstrap guides? It's basically html+css+js with premade goodies (at least it was last time I had to do web stuff).

[–] owenfromcanada@lemmy.ca 2 points 18 hours ago

I did the front-end program on freecodecamp.org a bunch of years ago, it was decent. The challenging part about finding what you're looking for is that Javascript is used in both the front and back ends (and in a number of other places). Courses in JS will usually focus on backend (node.js is common), but it sounds like you're looking for a basic front-end course.

Also note that "integrating front end with back end" is complicated and depends largely on the backend itself. In the free code camp course, I did some calls to APIs from the frontend, which I think is what you're asking.

In any case, check out the Full Stack course on freecodecamp.org (specifically what you're asking about is covered in the "DOM Manipulation and Events" section).

[–] OmegaLemmy@discuss.online -1 points 18 hours ago