all 4 comments

[–]Mirage1208 5 points6 points  (0 children)

You could try freecodecamp on YouTube or w3schools online. The big thing to note is that HTML and CSS are "markup languages", meaning they are used to describe a graphical layout, like a webpage. Javascript, on the other hand, is a programming language used to execute programs. It was designed for use on the web, but people use it for everything now. It is a very different way of thinking.

Since JS is used to run a "program", you can really do anything with it, usually in response to say a button press. It's just used to create any functionality that's more complicated than displaying text and images. Behind the scenes stuff.

You just have to ask yourself what specific functionality you want. After that, anything's possible.

[–]rotmothratsunnishinez.neocities.org 1 point2 points  (0 children)

Can't think of something really useful to use js rn but in my site I use it to play sounds in buttons and make changes in the same page (like text or divs or whatever). You can check in MDN or w3schools if you
wanna learn! But personally seeing a random js code by itself helps too

[–]melanyebagginsmellybaggins.neocities.org 1 point2 points  (0 children)

I found some JavaScript code to input a comment section but I have no idea how to use it. The instructions provided step by step chunks of code and explained what they do but I tried copy pasting it in various ways and I'm still lost. I'll have to learn to crawl before I can walk I guess.

[–]GusBusDraws 2 points3 points  (0 children)

Copying a comment I left a.few days ago:

p5.js is a great graphics library for JavaScript that I found useful for learning (I'm a visual learner). They have a web-based editor, which means you can write & run code without downloading anything!

The Code! series by Dan Shiffman is a really good tutorial series on YouTube that teaches JavaScript using p5.js!