Xah JS Blog 2026-07 to 2026-08
updates
- JS: DOM Methods
- JS DOM: Create Element, Clone
- JS DOM: Get Element by ID, Name, Class etc
- JS DOM: Get Parent, Child, Sibling
- JS DOM: Add / Remove Event Handler
- JS DOM: Create / Insert HTML Element
re-org js in depth. removed table of contents in home pages. they are confusing. now just rely on the left nav panel for short topic entry.
also cleaned the left panel. remove js object reference and svg in the panel. and put misc less important items into a new misc index page.
misc updates.
updates.
updates and new. some ai generated, for now.
more updates.
updated. cleaning up, re-org, my html tutorial.
updates.
added rainbow strip.
massive redesign. lots new index pages. now the nav panel is clean and logical.
updated
major rewrite.
omg CSS finally fixed a media query syntax problem. now you can use greater than sign in media query, e.g.
@media (width > 600px) {}
instead of the confusing
@media (min-width: 600px) {}
updates
- much additions.
- History of JavaScript, by Brendan Eich. 2008
update and correction
js bundler builder
- start to accept ai output, as is.
- JS: eval
/* 2026-07-21 example of functional programing. task. function to reconstruct template string */ // imperative style function ff() { var result = arguments[0][0]; for (var i = 1; i < arguments.length; i++) { result += arguments[i] + arguments[0][i]; } return result; } // functional programing style const fg = (...args) => { const xb = args.slice(1).concat(""); return args[0].flatMap((x, i) => [x, xb[i]]).join(""); }; // test console.assert(ff`a${1}b${2}` === "a1b2"); console.assert(fg`a${1}b${2}` === "a1b2");
- π JS: WeakMap
- π JS: WeakSet
- π JS: Map.prototype.getOrInsert
- π JS: Map.prototype.getOrInsertComputed
updates.
after 10 years, finally wrote this tutorial String.raw.
updated
major update.
minor edit
minor updates
repost
css flexbox and grid layout are an revolution in computer language.
grid in particular, is the first computer language that can specify layout in a declarative, automated, dynamic change, way. even sans even a single length.