Fill: Enum 成员
填空题 简单
题目
Fill in 空白到 assign 字符串值 到 enum 成员:
代码
enum Color {
Red = ___,
}
提示
字符串 enum 成员是 assigned 使用字符串 literals.
解释
值是 "red". The full declaration is Red = "red". 字符串 enums 需要 explicit 字符串值 for 每个成员, unlike numeric enums 哪个 auto-increment.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。