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
7c0cbe1320e76eb15d7e09002b259c004b2243da
front-end-example
/
06-typescript
/
03-array-and-function-types
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
练习 3
:
数组和函数类型
目标
学会给数组和函数写类型。
你要练什么
number[]
参数类型
返回值类型
任务
定义一个数字数组
写一个
sum
函数
让它接收两个数字并返回数字结果
文件
starter.ts
answer.ts