Files
front-end-example/06-typescript/02-basic-type-annotations
charlie f3bdaa4e88 feat: add TypeScript lessons and learning panel
- Introduced a new script to check TypeScript lesson files for errors.
- Created a main TypeScript file to render lessons and their details.
- Added lesson definitions with starter and answer codes.
- Implemented a user interface for navigating and running lessons.
- Styled the application with CSS for a better user experience.
- Updated README to reflect the new TypeScript section and usage instructions.
2026-03-19 10:06:11 +08:00
..

练习 2基本类型标注

目标

学会给最常见的值加上类型标注。

你要练什么

  • number
  • string
  • boolean

任务

  • 给年龄、姓名、付费状态加类型
  • 再输出一段清晰的学习信息

文件