Working with CoderDojoChi to teach children the basics of programming with the JavaScript language and P5.js.
You can view the examples below:
- Lesson 1 - calling functions
- Lesson 2 - variables that are assigned numbers
- Examples
- Challenges
- Utilities
- Show or hide a grid and tooltip. Should help kids grasp coordinate systems.
- Examples for fun
Each folder located in the project root directory and starting with a number is a lesson. A path to a lesson would look like /<lesson-number>-<lesson-description>/
. A lesson is made up of 2 parts:
- "examples"
- "challenges"
The idea is that teachers walk through "examples" to teach concepts and then students work on "challenges" to help them understand the concepts they have just been shown.
"examples" and "challenges" are explained in more detail below.
"examples" are code samples to use when teaching. You can find all examples for a given lesson in /<lesson-number>-<lesson-description>/examples/
.
Each lesson contains an "examples" folder and each "examples" folder contains 1 or more folders containing code examples. A path to a code example would look like /1-calling-functions/examples/1-simple-shapes/
.
Typically code examples are made up of 2 files:
index.html
sketch.js
sketch.js
contains the code necessary for demonstrating JavaScript concepts. sketch.js
files contain learning outcomes at the top of the file and are within code comments.
"challenges" are coding challenges for students. You can find all challenges for a given lesson in /<lesson-number>-<lesson-description>/challenges/
.
Each lesson contains a "challenges" folder and each "challenges" folder contains 1 or more folders with code challenges. A path to a code challenge would look like /1-calling-functions/challenges/3-eye-balls/
.
Code challenges contain 2 folders:
- "problem"
- "solution"
The "problem" folder contains starter code for students to hack on. The "solution" folder contains one answer to the challenge.