Web examples run directly in the browser inside a strictly sandboxed preview iframe — no execution server is needed. Companion CSS and JS files open as tabs above the editor and are automatically inlined, with console.log output shown underneath.

<div class="card">
  <h2>Interactive Counter</h2>
  <p id="val">0</p>
  <button id="btn">Click me</button>
</div>
body { font-family: system-ui, sans-serif; padding: 16px; }
.card { max-width: 280px; padding: 16px; border: 1px solid #cbd5e1; border-radius: 10px; text-align: center; }
#val { font-size: 2rem; font-weight: 700; margin: 8px 0; color: #0284c7; }
button { padding: 8px 16px; border: 0; border-radius: 6px; background: #0284c7; color: #fff; cursor: pointer; }
let count = 0;
document.getElementById('btn').addEventListener('click', () => {
  count++;
  document.getElementById('val').textContent = count;
  console.log('Clicked:', count);
});
Student
  1. Click Run to render the page, then click the button inside the preview and watch the console below.
  2. Switch to the style.css or app.js tab, change a colour or message, and click Run again.
Teacher
  1. In the CodeLab dialog choose HTML / CSS / JS and attach optional style.css and app.js files under Files.
  2. Works for guests too, with no Jobe or runner server required.