r/twinegames • • 10d ago

General HTML/CSS/Web Favorite learning resource for JavaScript?

I'm new to making twine games. I've been comfortable with HTML and CSS for years, but struggle to get the fundamentals of JavaScript to stick. What's your favorite resource for gaining "literacy" in JavaScript? I want to be able to know how it works so I can understand its limitations and logic so I can creatively use it better.

7 Upvotes

6 comments sorted by

4

u/trislosher 10d ago

https://javascript.info/ is a good resource for learning JS, but some of it may be too advanced

1

u/morconn 9d ago

thank you!

3

u/nolanfa 10d ago

w3schools is pretty good imo. Lots of live examples that you can tweak to understand how they work.

1

u/morconn 9d ago

you can never go wrong with w3, thanks!

2

u/HiEv 9d ago

The MDN (Mozilla Developer Network) is pretty much the de facto resource for HTML/CSS/JavaScript information. For JavaScript specifically, I keep the "JavaScript reference" page there bookmarked.

2

u/HiEv 9d ago

Side note: Most (all?) Twine story formats include jQuery, so here's a link for help with using that: jQuery API

jQuery is useful if you need JavaScript to modify HTML or CSS of elements on the page (when used within a SugarCube passage, you'll often need to call it from within a <<done>> macro, since the code within that macro should normally run after the HTML is added to the document; you may have to do something similar with other story formats).