官术网_书友最值得收藏!

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';
主站蜘蛛池模板: 景洪市| 阳城县| 巴青县| 宝应县| 博野县| 北安市| 旅游| 呼伦贝尔市| 大洼县| 安塞县| 怀集县| 南部县| 黑河市| 息烽县| 泰来县| 万安县| 海盐县| 万盛区| 吉隆县| 九江县| 铜鼓县| 卢湾区| 蒙城县| 荆门市| 华阴市| 同心县| 营山县| 钟祥市| 原阳县| 灵川县| 金门县| 灵台县| 平安县| 沾益县| 岗巴县| 新泰市| 龙海市| 隆化县| 大厂| 清徐县| 隆子县|