Skip to Content

JavaScript Terminal

A basic JavaScript REPL


    This is an extremely basic and probably evil JavaScript REPL (Read, Evaluate, Print, Loop) app. It literally just does a eval() call on your inputs. The inputs you give are not checked, so certain commands can brick the page. As an example, document.body.style.display = "none" will straight up hide the page.

    Since this method is super hacky, you can't bind variables with the usual keywords like let or const, you'll have to use the this context.

    The arrow keys work similarly to the default console, so you can press up or down to see previous commands.

    For convenience, I have added some helpers:

    Additional Resources