r/twinegames • u/morconn • 16d 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.
4
u/trislosher 16d ago
https://javascript.info/ is a good resource for learning JS, but some of it may be too advanced
2
u/HiEv 15d 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 15d 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).
4
u/nolanfa 16d ago
w3schools is pretty good imo. Lots of live examples that you can tweak to understand how they work.