← All Lessons Student Handout →

CiTi · Computer Coding · Year Two · Unit 3

Your JavaScript Wiki: Introducing the Assignment

Launch lesson for “JavaScript Fundamentals”

Program Computer Coding: Year 2
Unit 3: JavaScript Fundamentals
Duration 1 class period (~55 min), then weekly check-ins
Grouping Individual
Deliverable A live /js/ site with a menu and a first lesson page

Unit Statement

From the Year 2 curriculum map
Students 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.

Curriculum Map Alignment

Verbatim from Yr 2 curriculum

Concept / Knowledge / Content

  • Introduction to JavaScript: Where To, Output, Statements, Syntax, Comments
  • Variables and Operators: Variables, Let, Const, Operators, Arithmetic, Assignment, Data Types
  • Functions and Objects: Functions, Objects, Events
  • Working with Strings: Strings, String Methods, String Search, String Templates

Projects & Activities

  • Self-support wiki-style website documenting each new skill throughout the unit: explaining concepts, providing examples of use, and sample code for future reference

Assessment Strategies

  • Formative: weekly documentation of milestones with feedback
  • Summative: JavaScript Test

Skills / Tasks

Demonstrate proficiency with:

Basic Syntax & Console Output Variable Usage & Data Types Comments Code Documentation

Precision Web Development 2 Assessment

Obj 2 Functions and Obj 4 Input follow as the wiki grows.

Essential Standards (CDOS 3b)

  • ITPD01.04.02: Apply language-specific programming tools/techniques.
  • ITPD01.07.03: Document test results.

Program Connections

Skills & Portrait alignment

Program Skills: What I’m Building Toward

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

NYS Portrait of a Graduate

Academically Prepared Reflective and Future Focused

Guaranteed & Viable Curriculum Framework

3 Dimensions for this assignment

Integrated Academic Knowledge

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.

Employability Skills

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.

Technical Skills

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.

Learning Intention

“Unwrapped” from the standard

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.

Success Criteria

  • I can say what my wiki is for, and who it is for (me, later).
  • I can find the lesson list, the due dates, and my own status page.
  • I can list what a complete lesson page contains: every topic the jsdemo lesson covers, written in my own words, with a working example and its output.
  • I can run an example in the Try It editor before I put it on my page.
  • I can build a menu page at /js/ that searches the central lesson database and links each lesson with its number.
  • I can publish my first lesson page and open it on the live site.

Authenticity Continuum

Where this assignment sits today
Instruction & Skill Practice
Teacher-Designed Simulation
Realistic Industry Task
Authentic Audience / Client
Product, Service, Impact, Solution

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.

Materials & Prep

  • Student Handout (y2-u3-l1-so): the goal, what a complete page has, a weekly routine, how pages are checked, a starter menu, and an “Am I done?” list.
  • jsdemo: citicoding.org/jsdemo. Each lesson has a My Notes panel (saved in that browser only), a Try It editor, and, at the end of each section, a Section Quiz (15 questions, drawn 5 at a time).
  • Lesson list and due dates: the handout prints no dates, because they change every year. Dates and lesson order live in the central JS lesson table (js.db). Update the due dates there before the year starts; every student menu reads from it.
  • Status pages: each student has 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.
  • The page pattern: every wiki uses the same shape: a menu page at 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.
  • Each student needs their SFTP login and a plain-text editor, as in Year 1. Their folder is the class folder named by their initials; the wiki lives in a js folder inside it.

Teacher Watch List

Symptom → cause
What you seeUsual cause
Lesson shows as “missing” on the status pageThe 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 longIt 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 copiedPasted 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 codeSquare 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 creditThey took the quiz as a guest, or under a different name. Have them open “My Sets” and check

Lesson Flow

One period, ~55 min
TimePhaseWhat 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?”

Assessment

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.