CiTi · Computer Coding · Year Two · Unit 3
Launch lesson for “JavaScript Fundamentals”
/js/ site with a menu and a first lesson pageStudents will delve into the fundamental foundations of JavaScript, focusing on key concepts, syntax, and usage to build a strong grounding in the language.
The unit’s project is a self-support, wiki-style website that documents each new skill. This lesson is the launch: students see what the wiki is, how a week works, how it is checked, and build the menu page and the first lesson page so the habit starts on day one.
Demonstrate proficiency with:
Basic Syntax & Console Output Variable Usage & Data Types Comments Code DocumentationObj 2 Functions and Obj 4 Input follow as the wiki grows.
Hands-On:
#8 Write JavaScript that responds to a user
#9 Document and hand off a project
Professional:
#1 Ask for help early
#3 Meet a deadline
#9 Document as you go
Explaining a concept in your own words is the surest test that you understand it. Technical writing: a plain definition, a small example, and the output it produces. Reading a source (a lesson) and restating it for a different reader, your future self.
Working a long project in weekly pieces against a Friday deadline. Reading your own status report and acting on it. Keeping documentation that a teammate (or you, months later) can use without asking anyone.
Building a multi-page static site: a menu page, one page per lesson, consistent links. Writing and running small JavaScript examples and recording what they output. Using the jsdemo Try It editor to test code before documenting it. Taking the section quiz as a self-check.
Students will understand how the JavaScript wiki works: what a complete lesson page contains, how the work is paced week by week, and how it is checked. Then they build the menu and first page.
/js/ that searches the central lesson database and links each lesson with its number.Documentation is the real habit here: working developers keep notes and reference pages for the things they look up again and again. Push further: students use their own wiki as the reference while they build the Year 2 projects, and later share it with a Year 1 student who asks how something works.
js.db). Update the due dates there before the year starts; every student menu reads from it.INITIALS/js/status.html in the student’s folder, refreshed by the weekly check. Open one on the projector for the demo; use a volunteer’s or your own, not another student’s without asking.js/index.html that searches the central JS lesson database (js.db, one shared table with each lesson’s section, title, and due date) and builds the list in a loop, so new lessons and date changes reach every student menu with no edits to their pages, and one template page, lesson.html, that shows the lesson named in the link (lesson.html?skuvar=5). Build the template together on the projector, or copy a working student’s as the model. The handout describes the shape but deliberately holds no WebDNA code.js folder inside it.| What you see | Usual cause |
|---|---|
| Lesson shows as “missing” on the status page | The menu link does not carry the lesson number (for example skuvar=5), the page is not published, or the link points at the wrong folder |
| Page scores low even though it looks long | It covers only some of the lesson’s topics. The check is topic by topic, so a long page on half the topics still scores as half |
| Page is flagged as copied | Pasted from the lesson. Sit with the student and have them close the lesson, explain it aloud, then type that |
| Example “works in the lesson, not on my page” | Script tag missing or placed above the element it uses; open the browser console |
| Page prints odd text or drops pieces of code | Square brackets in code on a page the server processes (arrays, index numbers). Move the script to a .js file, or ask before building array lessons |
| Student has no quiz credit | They took the quiz as a guest, or under a different name. Have them open “My Sets” and check |
| Time | Phase | What happens |
|---|---|---|
| 0–8 | Hook | Ask: “Think of something in code you looked up three times. Where did you find it? Could you find it faster?” Pairs share. Reveal the goal: by the end of the year each of them owns a personal JavaScript reference they wrote. |
| 8–18 | Tour | Walk the three places: the jsdemo lesson (what to learn), their wiki (what they write), their status page (how it is checked). Show one strong example page and one that only copies. |
| 18–28 | Anatomy of a page | On the projector, take one short lesson apart: topics, plain-language explanation, example, output. Students list the topics in the lesson in their own words before they write anything. |
| 28–50 | Build | Students make the js folder, the database-driven menu page, and the first lesson page (JS Syntax), test one example in Try It, and publish. Circulate; check that every link carries the lesson number. |
| 50–55 | Exit | Each student opens their live menu and first page. Exit question: “What is the difference between my wiki page and the lesson it came from?” |
Formative: the live menu and first page at the end of the period; then the weekly status page, which is the milestone documentation the curriculum calls for.
Weekly check: each lesson page is scored for completeness against its jsdemo lesson: every topic covered earns the base score, and real extra depth earns more. A missing page scores 0. A section’s score is the average of its lessons, and the overall score is the average of the sections. Copying is shown to the teacher as a flag but is not part of the score.
Summative: the JavaScript Test, plus the finished wiki.
Extension: (1) Add a search box to the menu that filters the lesson list. (2) Add a “common mistakes” box to each page. (3) Style the wiki with a theme of their own.