Strict 模式测验
单选题 中等
题目
什么做 启用 `strict: 真` in tsconfig.JSON 做?
提示
Strict 模式是 shorthand 那个 turns on 多个 safety 检查.
解释
strict: 真 启用 family 的 strict 类型-检查 options 包含 noImplicitAny, strictNullChecks, strictFunctionTypes, strictBindCallApply, strictPropertyInitialization, noImplicitThis, and alwaysStrict. 它是 recommended 默认 for 新项目.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。