Command: C:\Program Files\nodejs\node.exe <workspace-dir>\outputs\01a135da-a9fb-7c92-a410-b2fbde889075\tutorials-k5-k6-draft2\draft2\K6\examples\web\17_javascript.mjs
Node v24.16.0
(1) Event loop: synchronous code -> microtasks (Promise) -> macrotasks (setTimeout)
Execution order: sync code -> Promise.then -> queueMicrotask -> setTimeout 0
(2) Closures and var vs. let
var: [ 3, 3, 3 ] let: [ 0, 1, 2 ]
(3) Every number is an IEEE 754 double-precision float (including integers)
0.1 + 0.2 = 0.30000000000000004 | === 0.3 ? false
Number.MAX_SAFE_INTEGER = 9007199254740991
JSON.parse on a 64-bit integer ID: 1849302847561928400 <- trailing digits corrupted
Parsed as BigInt before JSON.parse: 1849302847561928374
(4) Implicit type coercion with loose equality ==
"0" == 0 -> true ===: false
"" == 0 -> true ===: false
null == undefined -> true ===: false
[] == false -> true ===: false
"1" == true -> true ===: false
(5) async/await: sequential vs. concurrent (simulating three 200ms API calls)
for...await sequential: 603 ms
Promise.all concurrent: 200 ms
(6) A 300ms synchronous loop blocks every timer on the event loop
A timer scheduled for 10ms actually fired after 300 ms
Actual exit code: 0; Expected: 0
Verification Log: 17-current-run.txt
Companion verification log or original code sample for the linked tutorial, preserved in full with local user paths redacted; execution scope follows the recorded run.