Apr 14: Sharing via URL
Learning Objectives
After today’s class, you should be able to:
- Write documentation for functions using
@param,@returns, and@callback. - Use
window.locationandURLSearchParamsto read/modify query parameters. - Apply
encodeURIComponent()anddecodeURIComponent()to build URLs safely.
Lesson Outline
Documentation [10 min]
- @use JSDoc – see “Block tags” section
- You don’t need to install JSDoc
- VS Code has JSDoc support
- Data types: Primitive values
Lecture [20 min]
- MDN: Window: location and URLSearchParams
- MDN: encodeURIComponent() and decodeURIComponent()
Activity [45 min]
- Project claims (3 min per team)
- Transport – Part 1
Project Grading
Here is what I am currently thinking…overall, the project will be worth 250 points:
| Weight | Points | Score | Description |
|---|---|---|---|
| 20% | 50 | Group | Planning: 25 for Narrative + 25 for Sketch |
| 50% | 125 | Group | Implementation: divide claims total points by 8 |
| 10% | 25 | Group | Presentation: using a rubric based on the spec |
| 10% | 25 | Indiv | Peer evaluation or reflection for 1-person teams |
| 10% | 25 | Indiv | Process: commit history, chat logs, contribution |