Apr 7, 2025
console.log(1)
creates and evaluates an execution context, logs 1
.console.log(2)
does the same, logs 2
.getCurrentPosition
method uses success and error callbacks.then
, catch
, finally
callbacks, async function bodies, queueMicrotask
callbacks.maxTickDepth
) to prevent infinite microtask loops.51342
.