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';
推薦閱讀
- C程序設計簡明教程(第二版)
- Java系統分析與架構設計
- SpringMVC+MyBatis快速開發與項目實戰
- 深度學習經典案例解析:基于MATLAB
- 控糖控脂健康餐
- 深入理解Django:框架內幕與實現原理
- JavaFX Essentials
- 數據結構(Python語言描述)(第2版)
- Mastering Unity Shaders and Effects
- Learning ELK Stack
- 單片機C語言程序設計實訓100例
- Java網絡編程核心技術詳解(視頻微課版)
- MINECRAFT編程:使用Python語言玩轉我的世界
- Data Science Algorithms in a Week
- C# 7.1 and .NET Core 2.0:Modern Cross-Platform Development(Third Edition)