languages/
Syntax, runtimes, compilers, JITs, type systems and memory management.
4 results
languages/javascript-s-event-loop-why-settimeout-0-runs-after-the-code-below-it.md
JavaScript's event loop: why setTimeout(…, 0) runs after the code below it
Why does `setTimeout(fn, 0)` run after the lines below it, and why does a promise callback beat it? JavaScript has one worker and two…
languages/rust-ownership-why-let-b-a-makes-a-unusable.md
Rust ownership: why let b = a makes a unusable
Why does Rust refuse to compile `let b = a;` followed by a use of `a`? Because of ownership: every value has exactly one owner, and…
languages/why-does-5-3-give-53-in-javascript-type-coercion-step-by-step.md
Why does "5" + 3 give "53" in JavaScript? Type coercion, step by step
Why does `"5" + 3` give `"53"` while `"5" - 3` gives `2`? It is not random. JavaScript follows a short recipe called type coercion: it…
languages/why-does-my-javascript-loop-run-one-time-too-many.md
Why does my JavaScript loop run one time too many?
A loop tells JavaScript to repeat some code until a condition says stop. A for loop packs three pieces onto one line: a setup that runs…