xtodo JavaScript js
- 2025-04-29
- JavaScript fix snow fall page. make it all just fall, no bounce back.
- make it number of flakes according to screen size
- JS DOM: Falling Snow Effect
- 2025-04-29
- review my js class page etc
- 2025-04-29
- review my js iterator generator etc. need to be able to control reset or not

const xx = Array(4).fill(0).map((x, i) => x + i); console.log(xx); // [ 0, 1, 2, 3 ] // yy = xx[Symbol.iterator]; // console.log( yy ) // console.log( yy() .next() ) console.log( xx[Symbol.iterator]().next(), ); // { value: 0, done: false } console.log( xx[Symbol.iterator]().next(), ); // { value: 0, done: false } /* the complex javascript iterator generator interface fucks. here, first is the complexity of no range function. you got the fill method patch to deal with that. then, am trying to deconstruct the iteratable interface, trying to get its next value. but apparantly it resets. very complex, because the iterable contains a property of type symbol, named Symbol.iterator. it's value must be a function. and it must return a object, this object must have a next property, and this property's value must be a function. this is why u get this funky xx[Symbol.iterator]().next() its return value, is a object, that contains value and done keys. yet, somehow it resets. am unable to get it to 0, 1, 2, 3, etc. */
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/new.target
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap
- JavaScript write tutorial on
setTimeout
andsetInterval
A Brief History of JavaScript By Deno. At https://deno.com/blog/history-of-javascript
CommonJS is hurting JavaScript By Andy Jiang. At https://deno.com/blog/commonjs-is-hurting-javascript
- ecmascript 2022
- bigint
- number input forms
- need to fix the char frequency. need more corpus Ergonomic Keyboard Layouts
- Character Frequency Plot
- 2021-04-29 work in progress Bigram Calculator
- 2022-09-29 write code to count word frequency, of my site. and bigram. use golang and WolframLang
- change char frequency chart diagram to svg. e.g. Myth of QWERTY vs Dvorak Layout , check all pages.
- 2021-05-20 change to svg Russian Keyboard Layout
JavaScript
- 2021-11-26 add how to add a style sheet on the page. See also: JS DOM: Change CSS. look at the code for unicode search.
- 2021-04-09 write a interactive converter Unicode: Full-Width Characters ο½ο½ο½
- 2021-04-09 write a interactive JavaScript to compute bigram chart. What is the Most Efficient Keyboard Layout?
- tutorial going over all JavaScript warts Xah JavaScript Style Guide for Functional Programers
- 2023-10-31 node.attributes JavaScript
Georrg, 11/03/2022 @XahLee standard library has walk and walkSync functions
- async: https://deno.land/std@0.162.0/fs/walk.ts?s=walk
- sync: https://deno.land/std@0.162.0/fs/walk.ts?s=walkSync
import { walkSync } from "https://deno.land/std@0.162.0/fs/walk.ts"; for (const entry of walkSync(".")) { console.log(entry.path); }
- 2022-09-26 JS: JSON.stringify, doc optional args
- 2022-09-26 JS: JSON.parse , doc optional args
- 2022-08-21 test innerText , and also more study on nodeValue JS DOM: textContent, innerHTML, innerText, nodeValue
- 2022-09-04 update jQuery Selector vs DOM querySelectorAll
- 2022-09-04 review JS DOM: textContent, innerHTML, innerText, nodeValue
- 2022-09-04 JavaScript Java class model vs JavaScript class model
- 2022-09-02 JavaScript maybe delete any mention of βalso is a Iteratorβ
- 2022-08-31 group the object properties JS: Object.keys
- Difference Between Implied Global and True Global Variable JS: Global Variable
-
2022-10-14 write a
xah_is_map_equal
andxah_is_set_equal
- 2022-07-28 JS: Symbol.prototype
- 2022-07-28 JS: String.raw
a TypeScript and deno problem
- // The problem. Save this as x.ts, then call deno run x.ts
- // You get the error , shown in the other pane
- // deno wants u to add typescript types, but the problem is, can't do it unless perhaps most of the types is any, or u mod the code so it have if statement to catch impractical errors such as out of bound index, empty string, etc
- // The question is, how do u add type declaration, without changing ur code to add silly impractical error catching
const fCharStrToId = ((x) => x.codePointAt(0)); const fCharIdToStr = ((x) => (String.fromCodePoint(x))); console.log(fCharStrToId("π"));
- 2022-03-26 JavaScript obfusticate my unicode search code https://github.com/javascript-obfuscator/javascript-obfuscator
- JavaScript deno walk dir https://deno.land/std@0.135.0/fs#expandglob
- 2022-03-14 JS: Symbol (class) need complete
- need list of all unicode properties JS: RegExp Unicode Property
- 2022-02-19 add how to use python to do it What Characters Are Unicode Letter β’ Python: Get Unicode Name, Codepoint β’ Python: Unicode π
- 2022-01-11 JavaScript svg, need to rewrite Emacs Key Layout Diagram
- 2021-12-17 JavaScript, write a syntax highlight. start perhaps for elisp. just do simple word highlight. use regex. highlight vars if possible. highlight comment. possibly even ignore string.

- 2021-05-20 . write JavaScript svg keyboard diagram
- write a js to generate keyboard svg diagram
- ;; 2022-04-03 There's a new notation for key, based on finger.
- ;; For example the qwerty e key is Lp2p1.
- ;; The notation is like this: [left or rigt hand][column number][row number].
- ;; L means left hand, R means right hand
- ;; Column position, pointing finger is 1, index is 2, ring finger is 3, pinky is 4, and so on in that direction. Thumb is 0. In the thumb direction is -1, -2 etc.
- ;; Row position, home row is 0. Above is 1, below is -1.
- ;; Positive number are written with p in front. Eg p1, p2. Zero is p0. Negative can be written with n in front, eg n1, n2.
- ;; This system is a notation system for keyboard physical layout, which also indicates associated finger for that key.
- ;; The advantage is that it's a logical system, not based on arbitrary table lookup.
- ;; Qwerty, dvorak, etc can then be mapped to this logical system.
- a text diagram of letter layout map to fingerposition
- qwerty letter map to fingerposition
- dvorak letter map to fingerposition
- fingerposition map to center of key

- 2021-11-15 create keyboard layout JavaScript
- layout draw
- Xah Talk Show Keyboard Heatmap JavaScript + SVG
- Xah Talk Show 2020-09-26 JavaScript live coding keyboard layout heatmap