All Collections
Online IDE
Using the CodeHS IDE
Versions of Programming Languages on CodeHS
Versions of Programming Languages on CodeHS

Learn more about the programming languages and versions used in CodeHS courses and supported in the Sandbox

Lea Sloan avatar
Written by Lea Sloan
Updated over a week ago

CodeHS supports many programming languages and versions on our platform. You can learn more about CodeHS program types in this related article: Program Types

On any CodeHS exercise or Sandbox program, you can see additional information about the language and version by going to More > About:

Screenshot of the CodeHS Code Editor highlighting the More > About page that shows the language version used in that program.

Below is some general information about the versions of programming languages you will find in CodeHS courses and Sandbox programs.

JavaScript

CodeHS uses ES5, which is the version of JavaScript that all browsers use.

Python

  • Current CodeHS courses use: Python 3

  • Courses created prior to 2020 used: Python 2.7

Note: CodeHS uses a JavaScript library called Skulpt to make it easier to run Python in our browser. Most of the commands used in our Python courses are the same as the original Python 2.7 ones, but because we use Skulpt, you might see some small inconsistencies. To learn more about Skulpt, take a look at the repository on GitHub.

The CodeHS Sandbox also supports graphics programs using Tkinter, Brython (version 3.9.0 or 3.11.0), and Pygame. Explore all the different types of Python programs supported by the Sandbox here. See Using the CodeHS Editor to learn how to change Brython versions.


Java

  • Main CodeHS courses use: Java 8 / 1.8

Java 11

CodeHS now supports Java 11 and the ability to switch between versions of Java. To switch between versions, you can create a file named “run.sh” that uses the jenv command.

To learn more about the run.sh file, check out this tutorial:
CodeHS Tutorial: run.sh

To learn more about using Java 11, check out this demo and short video:

JShell

CodeHS supports JShell, an interactive Java REPL (read-eval-print-loop). In JShell you can explore the Java language without compiling an entire program. Running a JShell uses a 'run.sh' file.

Demo Sandbox Program:

Demo Video:


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

Did this answer your question?