- 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';
推薦閱讀
- ASP.NET Core:Cloud-ready,Enterprise Web Application Development
- The Android Game Developer's Handbook
- Visual FoxPro程序設計教程(第3版)
- Azure IoT Development Cookbook
- Reactive Programming with Swift
- Windows Presentation Foundation Development Cookbook
- MySQL數據庫基礎實例教程(微課版)
- Java編程技術與項目實戰(第2版)
- 程序是怎樣跑起來的(第3版)
- Oracle Exadata專家手冊
- HTML5與CSS3基礎教程(第8版)
- 從零開始學Linux編程
- Webpack實戰:入門、進階與調優
- Unity 2018 Shaders and Effects Cookbook
- Visual Foxpro 9.0數據庫程序設計教程