This website requires JavaScript.
Explore
Help
Register
Sign In
rou
/
front-end-example
Watch
1
Star
0
Fork
0
You've already forked front-end-example
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
d5ff59ac76b024e48cb319376745ae669ac4c30e
front-end-example
/
06-typescript
/
02-basic-type-annotations
History
rou
d5ff59ac76
update
2026-03-23 16:33:09 +08:00
..
answer.ts
feat: add TypeScript lessons and learning panel
2026-03-19 10:06:11 +08:00
README.md
feat: add TypeScript lessons and learning panel
2026-03-19 10:06:11 +08:00
starter.ts
update
2026-03-23 16:33:09 +08:00
README.md
Unescape
Escape
练习 2
:
基本类型标注
目标
学会给最常见的值加上类型标注。
你要练什么
number
string
boolean
任务
给年龄、姓名、付费状态加类型
再输出一段清晰的学习信息
文件
starter.ts
answer.ts