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:
Below is some general information about the versions of programming languages you will find in CodeHS courses and Sandbox programs.
JavaScript
CodeHS uses ES6, which is the version of JavaScript that all browsers use.
Python
CodeHS provides Python 3.8, 3.11, and 3.12.
The CodeHS Python program types that use Python 3.11 are:
Python 3
Python 3 Graphics (tkinter)
Pygame
Python 3 Data Science
Python 3 Data Science (Graphics)
Python Turtle, Brython, and Karel versions will vary, and run in web based Python versions that may differ with the standard Python versions.
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:
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!