Drag the background!

Happy Coding JS course

This is an introduction to coding course using JavaScript. It is suitable for beginners. Coding is in the browser on Ancient Brain. The course uses p5.js, a graphics library designed to be easy for beginners.

The lessons are adapted, with permission, from Kevin Workman's Happy Coding site. Each lesson introduces a new concept and has one or more "Worlds" that you can run and clone and edit directly in the browser. Work through them in order and by the end you will have a solid grasp of the fundamentals.

Here are some of the programs (or "Worlds") we will be coding in this course. Click to run them.


11.1 Classes
3 runs ♦ 0 likes
By Happy Coding Port  
Created: 10 Jun 2026
Modified: 16 Jun 2026
7.3 Keyboard inputs
8 runs ♦ 0 likes
By Happy Coding Port  
Created: 16 Jun 2026
Modified: 16 Jun 2026
13.3 Get() example
4 runs ♦ 0 likes
By Happy Coding Port  
Created: 2 Jul 2026
Modified: 2 Jul 2026
12.5 Trail
4 runs ♦ 0 likes
By Happy Coding Port  
Created: 1 Jul 2026
Modified: 1 Jul 2026

Contents

  1. Calling functions
  2. Variables
  3. Creating functions
  4. Debugging
  5. If Statements
  6. Animations
  7. Input
  8. For Loops
  9. Arrays
  10. Objects
  11. Classes
  12. Array functions
  13. Images


Notes

  • The Happy Coding lessons have been adapted for the Ancient Brain coding platform.
  • This gives access to all the Ancient Brain features.
  • For each activity, clone the 'World' and edit it to do the activity.
  • No install needed. Edit in the browser. Run in the browser. You can clone and edit directly from the course.
  • You need to register and log in to edit code.
  • Students can save their programs on the Ancient Brain server and view them from anywhere.
  • Lessons adapted by Evie Savino.


Get started

Let's start the course!
The background is a program, showing the JavaScript graphics used on this site.
The globes light up when you log in.
 
Font:

Users retain ownership of user content.

Platforms      Stats      The name      Terms and conditions

Call for partners      Contact

Call for partners!
Ancient Brain is looking for a partner to co-write a JavaScript or Python coding book for schools, to be used worldwide. This would be a course for students in learning to code from scratch. The book and course will be integrated into the Ancient Brain site. This is an opportunity for someone looking to develop a course and textbook to partner with a site to promote it. Read more.