Apr 24: Export/Import Data
Learning Objectives
After today's class, you should be able to:
- Write documentation for functions using
@param
,@returns
, and@callback
. - Generate a data URL to embed a file in the DOM that enables downloading.
- Use the FileReader interface to read a file selected from the user's computer.
Lesson Outline¶
Documentation [15 min]
- Style Guide – provided as an example
- @use JSDoc – see "Block tags" section
- You don't need to install JSDoc
- VS Code has JSDoc support
- Data types: Primitive values
Work on Lab 10 [45 min]
- Discuss the MDN reference pages
- Complete most of the lab in class
Work on Project 3 [15 min]
- Add export/import to your project
- Plan presentation – in two weeks!