Skip to main content
All CollectionsOnline IDEUsing the CodeHS IDE
Using Stopify in the Code Editor
Using Stopify in the Code Editor

Learn how to use Stopify in your Javascript programs

Sara Jenis avatar
Written by Sara Jenis
Updated over 2 months ago

What is Stopify?

Stopify is an extension for JavaScript (Console) programs that allows the CodeHS IDE to execute programs with infinite loops and improves the Javascript Interactive Prompt.

Running Code that Contains Infinite Loops

The Stopify tool helps prevent the browser from crashing while executing infinite loops. See Debugging Infinite Loops to learn more about fixing Infinite Loops.

GIF of code running that contains infinite loops

Improving the Interactive Prompt

Stopify moves the interactive prompt from a pop-up window to inline, allowing you to easily view the interaction.

Interactive Prompts using the Default environment:

GIF showing interactive prompts using the default environment

Interactive Prompts using Stopify:

GIF showing interactive prompts using stopify

Enabling Stopify in Your Code Editor

To enable Stopify in your Code Editor:

  1. Click the gear icon to access the Editor Settings

  2. Under Other> Code Running Environment, choose Stopify

    Photo of enabling stopify in the code editor

Make Stopify Your Default Code Running Environment:

You can make Stopify your default code running environment where available!

  • From your Sandbox page, choose IDE Settings and toggle on the Stopify setting.

    GIF demonstrating how to make stopify your default code running environment.

  • From your Account Settings, open the IDE tab, and turn on the Use Stopify by default option.

    Photo showing how to enable stopify from account settings.


Stopify Limitations

Some JavaScript features are not available when using Stopify and are only available in the default code running environment. These include:

Still have questions? Contact our team at hello@codehs.com to learn more!

Did this answer your question?