CiTi · Computer Coding · Year Two · Unit 3
Write the JavaScript reference you will still use at the end of the year
This year you are learning JavaScript from a long list of short lessons. If you only read them, most of it will be gone in a month. So you are going to write it down: a small website of your own, a wiki, with one page for every lesson. Each page explains one idea in your own words, shows an example, and shows what the example prints.
The wiki is for you. Months from now, when you cannot remember how a loop works, you will open your own page and read the explanation you wrote, in words that make sense to you.
You will work in three places. Keep all three open.
| Place | What it is for | Where |
|---|---|---|
| jsdemo | The lessons. Read here, try the examples in Try It, jot notes in My Notes, and take the Section Quiz at the end of each section. | citicoding.org/jsdemo |
| Your wiki | What you write. One menu page, one page for each lesson. | YOURFOLDER/js/ |
| Your status page | How you are doing. A row of dots, one per lesson, showing which pages are done, missing, or thin. | YOURFOLDER/js/status.html |
js/index.html). You do not type the menu by hand: it searches a central JavaScript lesson database (one shared table of every lesson, with its section, title, and due date) and builds the list for you, grouped by section, in order. When a new lesson is added to the central table, it appears on every student’s menu. Each lesson’s name is a link. Each link goes to one template page, lesson.html, with the lesson number on the end: lesson.html?skuvar=5 shows lesson 5. The number in the link is how your page is found and checked. Your teacher builds the template with you in class.
A page is complete when it covers every topic its lesson covers. Open the jsdemo lesson and look at its headings: each heading is a topic. Your page needs each one.
For every topic, write these three things:
Here is the shape of one topic on a page about comments:
Lessons come in sections (JS Syntax, JS Operators, and so on), and each section has a Friday due date. A good week looks like this:
Once a week your wiki is checked against the jsdemo lessons. The results appear on your status page. There is one dot per lesson.
| Score | What it means |
|---|---|
| Missing = 0 | No page, a blank page, or an error. The menu link is missing or does not go to your page |
| Below 7 | Half or more of the lesson’s topics are not on your page |
| 7 to 7.5 | A little over half of the topics are covered |
| 8 to 8.5 | Most topics are covered (60 to 99%) |
| 9 | Every topic is covered |
| 9.5 to 10 | Every topic, plus real extra depth |
A section’s score is the average of its lessons. Your overall score is the average of the sections. The score is about completeness. Copied pages show up as a flag your teacher can see; that is a conversation, not a score.
In class, build the first version of your wiki and publish your first lesson page.
js. Everything for the wiki goes inside it.js/index.html. Give it a title (for example, “Sam’s JavaWiki”). Your teacher shows you how to make the menu search the central lesson database and list every lesson as a link. The first one is JS Syntax (lesson 5).js/pages/ as lesson.html.?skuvar=5.Then keep going: finish the other topics on the JS Syntax page, then work down the list in order.
Lessons come in sections, and each section has a Friday due date. The dates are not printed here because they change every year. They live in the same central lesson table that builds your menu, and your teacher will tell you each week what is due.
js/ inside my own folder, and my menu page opens on the live site.?skuvar=5.