Final project
Create Your Own Character Builder
Fill in a character creation sheet, agree on the rules and tests as a group, then write and connect the code to build a complete D&D-style Character Builder app to show off!
An adventure in coding
Designed for kids age 10 to 12
Ages 10–12 No experience needed
Step into the dungeon, type real code, and build your own fantasy Character Builder app!
An introduction to JavaScript where each small adventure adds one new idea and you see the results right away in your browser.
Used tablets and apps? You're ready: Lesson 1 teaches opening files, typing, saving and refreshing, and an instructor helps.
A short weekly course, sessions of about an hour and a half
Run and change code
Edit a message, save and refresh
Declare variables
Store and change values with const and let
Use operations
Do math, join text, turn text into numbers
Make decisions
Compare values and choose with if / else
Repeat actions
Use loops and keep running totals
Write functions
Reusable code, including random dice
Group information
Arrays and objects for species and classes
Then: the final project
Put every skill together
Final project
Fill in a character creation sheet, agree on the rules and tests as a group, then write and connect the code to build a complete D&D-style Character Builder app to show off!
Optional bonus
Read a text box and a dropdown, and respond to a button click. Not needed for the final project.
How long
A short weekly course
Sessions of about an hour and a half
What you need
Windows laptops
We'll supply them, with Notepad and a web browser. Or bring your own.
Ready to go
Nothing to set up
No installs, internet or command line needed
Open index.html in Edge and script.js in Notepad, then cast your first spell:
// before
print("Welcome, adventurer!");
// after
print("Welcome, code explorer!");