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';
推薦閱讀
- Mobile Web Performance Optimization
- 零基礎學C++程序設計
- Bulma必知必會
- Object-Oriented JavaScript(Second Edition)
- Python王者歸來
- Effective Python Penetration Testing
- PhoneGap:Beginner's Guide(Third Edition)
- 速學Python:程序設計從入門到進階
- 零基礎學C語言第2版
- CRYENGINE Game Development Blueprints
- Sitecore Cookbook for Developers
- JavaScript編程精解(原書第3版)
- C語言程序設計實驗指導教程
- Mastering Docker(Second Edition)
- React Router Quick Start Guide