This is a card in Dave's Virtual Box of Cards.
JavaScript
Page created: 2023-11-25
Updated: 2026-04-29
-
JavaScript: Blank line scanning/parsing/lexing by hand vs regex and…
-
Writing files from JavaScript (with data urls)
-
css-vars (has an explanation of accessing CSS vars from JS)
New for 2024: I also have a demonstration page for Textarea Syntax Highlighting.
I’ve done tons of JavaScript projects. Some highlights:
Where do JS prototypes come from?
From ARK (Smith) by way of Self (Smith and Ungar).
Check out Randall Smith’s ARK system on my microworlds page.
'this' is regretful
I almost never use the this keyword if I can help it. If I do, it’s one
line at the beginning of a callback and I get what I need from it and then
leave it alone. Never trust this in some deeply nested code somewhere.
It will always hurt you when you least expect it.