Skip to content
JavaScript
-
JavaScript
JS Performance, Memory and Numbers, Measured in jsc
JavaScript lecture 6: IDs above 2^53, BigInt at 53x the cost, the += string trap (2 ms vs 564 ms), holey arrays, JIT tiers 31 to 5 ms, Map vs WeakMap leaks.
-
JavaScript
JavaScript Objects and Arrays: map, reduce, Copy Traps
JavaScript lecture 3, run in macOS jsc: map/filter/reduce, spread and destructuring, the shallow copy trap, sort() putting 100 before 9, an O(n²) reduce.
-
JavaScript
JavaScript Functions, this and Closures (Run in jsc)
JavaScript lecture 2, run in macOS jsc: function vs arrow, what this really is, closures, the var-in-a-loop trap, TDZ ReferenceError and a measured memoize.
-
JavaScript
JS Classes, Prototypes and Modules, Run in jsc
JavaScript lecture 4 in jsc: prototype chain, class vs function, #private fields, the lost-this TypeError, circular imports, 40 vs 249 bytes per object.
-
JavaScript
JavaScript Basics: Types, == vs === and NaN in jsc
JavaScript lecture 1, every line run in macOS jsc: let/const/var errors, typeof null, a real == vs === table, 0.1 + 0.2, NaN, "10" + 5 and a measurement.
-
JavaScript
JS Promises and the Event Loop, Printed and Timed
JavaScript lecture 5: microtask vs setTimeout order printed in jsc, silent unhandled rejections, Promise.all vs allSettled, and 311 vs 124 ms for awaits.
↑