- 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.
练习 2:基本类型标注
目标
学会给最常见的值加上类型标注。
你要练什么
numberstringboolean
任务
- 给年龄、姓名、付费状态加类型
- 再输出一段清晰的学习信息