概念: Strict 模式 Benefits
概念检查 中等
题目
什么做 strictNullChecks (部分的 strict 模式) prevent?
提示
Think 关于什么错误空 and undefined 能 cause at 运行时.
解释
strictNullChecks prevents 你从 accessing 属性 or calling 方法 on 值那个能 是 空 or undefined 不使用首先检查. 这个 catches 大多数常见源 的运行时错误: 'Cannot 读取属性的 空.' 它 forces 你到 handle 空/undefined explicitly, 制作 code 更多 robust.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。