xcatliu/typescript-tutorial

undefined和null赋值给number

qdwds opened this issue · 0 comments

qdwds commented

106 | let num: number = undefined;
| ^^^

经过测试已经开始报错了,可能版本升级原因
https://ts.xcatliu.com/basics/primitive-data-types.html