- Building Web and Mobile ArcGIS Server Applications with JavaScript(Second Edition)
- Eric Pimpler Mark Lewin
- 123字
- 2021-07-02 15:48:54
JavaScript is case sensitive
One very important point that we need to be clear about is that JavaScript is a case-sensitive language. You must be very careful about this because it can introduce some difficult to track down bugs in your code. All variables, keywords, functions, and identifiers must be typed with a consistent capitalization of letters. This gets even more confusing when you consider that HTML is not case sensitive.
This tends to be a stumbling block for new JavaScript developers. I have created three variables, all with the same spelling, but because they do not follow the same capitalization pattern you end up with three different variables as follows:
var myName = 'Eric';
var myname = 'John';
var MyName = 'Joe';
推薦閱讀
- TypeScript入門與實戰
- Java EE 6 企業級應用開發教程
- Mastering Objectoriented Python
- Mastering Entity Framework
- 人臉識別原理及算法:動態人臉識別系統研究
- Hadoop+Spark大數據分析實戰
- JS全書:JavaScript Web前端開發指南
- Hands-On RESTful Web Services with Go
- Hands-On Microservices with Kotlin
- MATLAB 2020從入門到精通
- Mastering JavaScript High Performance
- Creating Stunning Dashboards with QlikView
- Python項目實戰從入門到精通
- H5+移動營銷設計寶典
- Android應用開發攻略