We offer a code editor that can execute the written code at any time, whether to submit a solution or test some scratch code.
Running Tests and Code
Click the Run Code
button in the toolbar. Run Code
will run all the code in the editor-- be sure to log
or print
your statements to see an output. You may remove the appended tests if desired.

Note that you don't need to do anything other than fill out the function signature. Our test runner will take care of managing input/output, so no need to manually get user input. The contents of your function will get invoked when our tests call yourFunction(ourInput)
. It will assert the return value of this function with the expected return value for the test case.
Press Reset
any time you want to reset to the original function signature or code.
Note: if you see something unexpected (we save your work to your local storage), hit Reset
to get back to the original code state.