Read the assignment
Each exercise contains starter code and a clearly defined assignment. Students can begin directly in the browser.
JavaScript in the Classroom is a browser environment where students write, run and test code alongside each exercise.
How does it work?
Students write code, run it and immediately see what happens in the console or on the canvas. The environment is designed for short practice moments, study periods and lessons where programming takes up only part of the available time.
Each exercise contains starter code and a clearly defined assignment. Students can begin directly in the browser.
The output appears on the same page. It can be console output, a turtle graphics drawing or a simple canvas task.
Status icons, test cases and error messages help students improve their solution without syntax immediately taking all the attention.
Components
The tool runs as a regular website. GitHub Pages or a simple local web server is sufficient. Opening it via file:// is unsuitable because the app loads content files.
Students can make algorithms visible on a drawing grid. This especially helps with loops, order, angles and patterns.
A built-in reference sheet with commands and colour options makes syntax easier, leaving more room to focus on reasoning.
Exercises can check ordinary output, input via ask() and canvas results. Open-ended assignments can still be assessed manually.
Progress is stored locally in the browser. That works well for separate practice moments and independent work.
Students can export their work with code, console output, canvas image, attempts and space for feedback.
For teachers
This project is intended as a lightweight supplement for lessons, study periods and independent practice. Specialised platforms such as Dodona are better suited to extensive progress tracking, dashboards and class management.
The PDF export combines code, output and a compact feedback rubric. This lets you assess whether the solution works, how readable the code is and which thinking concept the student uses.
Place in the learning path
The platforms build computational thinking. The projects use that thinking in a cross-curricular assignment in which students build, measure, test and conclude.
Adapting exercises
All exercises are stored as separate files in content/. This avoids working in one large exercise list. The exercise creator helps prepare new exercises in the right structure.
Start the learning environment or open the exercise creator to prepare your own assignments for your fork.
This project does not use its own analytics or advertising cookies. Input, progress and results are processed in the browser and may be stored locally on the device. A download or export occurs only when the user initiates it. GitHub Pages logs visitors’ IP addresses for security purposes; external services are governed by their provider’s privacy policy.
Original project material by Robbe Wulgaert may be used, copied and adapted free of charge for education, provided that ‘Robbe Wulgaert – AI in de Klas’ is clearly displayed, where reasonably practical with a link to the original project. Commercial sale, paid distribution, sublicensing or repackaging as a commercial product is not permitted without prior written permission. Other uses outside education also require prior written permission. Third-party components remain subject to their own licences.