Write modern JavaScript or TypeScript and watch how it executes.
Shortcuts: Ctrl/Cmd+Enter Run,Space Resume/Pause, →/← step forward/back.
queueMicrotask
Everything runs in an isolated worker in this browser. These work:
let
const
setTimeout
clearTimeout
setInterval
clearInterval
Promise
Promise.all
Promise.race
.then
.catch
async
await
try / catch
console.log / warn / error
The sandbox keeps execution deterministic and safe, so these are rejected before running:
fetch
XMLHttpRequest
document
window
import
export
import()
function*
yield
for await...of
require
process
eval
All links in this help open MDN Web Docs in a new tab.
console output will appear here