📓 javascript_scratchpad.ipynb
Quick JS with captured console, top-level await, and a sandboxed DOM frame.
iframe sandbox | JavaScript (modern)
In [1]:
# Code
Editor (top-level await OK)
// Try me — Shift+Enter runs const greet = (name) => `Hello, ${name}!`; console.log(greet('Enrico')); // Top-level await works const res = await fetch('https://api.github.com/repos/enricocarraro/cutsilence'); const json = await res.json(); console.log('Stars:', json.stargazers_count);
Console
In [2]:
# DOM Preview

The script runs inside the sandboxed iframe below. Mutate document.body freely.