In JavaScript all variables and function names are case sensitive.
Variable names can be made up of numbers, letters, and $ or _ , but may not contain spaces or start with a number.
When JavaScript variables are declared, they have an initial value of undefined.
- If you do a mathematical operation on an undefined variable your result will be NaN which means “Not a Number”.
- If you concatenate a string with an undefined variable, you will get a literal string of “undefined”.
JavaScript : 命名
最新推荐文章于 2023-10-28 23:48:00 发布