变量 Naming 规则
单选题 入门
题目
哪个的 following 是 NOT 有效变量 name in JavaScript?
提示
变量 names cannot 开始使用 digit.
解释
变量 names in JavaScript cannot 开始使用数字. 2ndPlace 开始使用 2, 所以它 是无效. Names 能开始使用 letters, underscores (_), or dollar signs ($). camelCase, _privateValue, and $price 是所有有效.
相关资源
相关课程
- 变量
学习如何变量工作 in programming.
查阅不认识的术语
新手友好的术语表用大白话解释编程术语——变量、函数、DOM、Promise 等等。
解读错误信息
用大白话解释常见错误——什么意思、为什么发生、如何修复。
动手做项目
通过引导式项目应用所学,含起始代码与解决方案。