iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

JS Editor

The iwantcoding.com Tryit Editor is a split-pane sandbox: code on the left, live preview on the right, console below. The same UI works for every track.

What's in the editor

FeatureHow to use
HTML / CSS / JS tabsClick a tab to switch panes — they all share one running document.
Run buttonTop-right. Also fires on Ctrl/Cmd + Enter.
ResetRestores the original example.
Theme switcherDracula / Monokai / GitHub Light, persisted per device.
Console panelCaptures console.log/info/warn/error from inside the iframe.
ShareCopies a URL with your code packed into the hash.
AI Debug / ReviewSends the current pane to the AI panel for a fix or critique.

Open the editor

  • Click Try it Yourself » on any lesson page.
  • Or jump straight to the JS intro example.
  • Or paste a #p=… share URL from a friend.

Tips for fast iteration

  • Ctrl+Enter to run without leaving the keyboard.
  • Use the console panel — console.log from inside the iframe surfaces here, not in your real DevTools.
  • Share buttons let you paste a working snippet into Slack/issues without setting up a CodePen.
Tip: Treat the editor as a scratchpad. Paste a snippet from elsewhere, tweak it until you understand it, then copy the working version back into your project.

Example

Example
<!DOCTYPE html>
<html>
<body>

<p id="out"></p>

<script>
document.getElementById("out").textContent = "Hello from JS Editor!";
</script>

</body>
</html>
Try it Yourself »

Exercise

Keyboard shortcut to run the code.

Press: + Enter

Test yourself

Q1. Run the editor code with the keyboard via…
Q2. The editor preview iframe is sandboxed with…
Q3. Multi-file editor tabs are…

Discussion

Loading…