01LIVE
THE REACTOR
Promise state machine
Every promise starts pending, then settles exactly once: fulfilled or rejected.
PENDING
new Promise((resolve, reject) => {
resolve("signal found");
});
resolve("signal found");
});
// JAVASCRIPT FIELD NOTES 001
A tiny interactive lab for watching async code change state, survive failure, and hand work to the next process.
THE REACTOR
Every promise starts pending, then settles exactly once: fulfilled or rejected.
THE LOOPBACK
A function can call itself. Here, each recursive pulse waits on a promise before descending.
THE HAND-OFF
Old-school callbacks can be wrapped in a promise, giving their result a clean .then() chain.
Awaiting payload...
OBSERVABILITY
Lab initialized. Choose a signal.