Skip to main content

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 2 weeks 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 About page under the Mode tab 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 ES6, which is the version of JavaScript that all browsers use.

p5.JS

CodeHS provides p5.js and p5play:

  • p5.js (version 1.8.0)- Code with a JavaScript-based implementation of the updated graphics library based on processing.

  • p5play (version 1.6.0)- a JavaScript game engine that uses p5.js for graphics and Box2D for physics.

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

Most core CodeHS courses currently use Java 8 (1.8). However, CodeHS is in the process of upgrading to Java 21.05 for improved performance and functionality.

Java 21.05

Java 21.05 is now used within:

  • AP Computer Science A (Cortado)

  • All new CodeHS courses

  • All new Sandbox programs

Older courses and existing Sandbox programs will continue to run on Java 8 (1.8) for compatibility.

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?