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

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';
主站蜘蛛池模板: 古田县| 元江| 临夏市| 凯里市| 荆州市| 临武县| 常熟市| 商洛市| 澜沧| 襄汾县| 大庆市| 宁阳县| 汕尾市| 太白县| 库尔勒市| 霸州市| 漠河县| 桐城市| 寿宁县| 蕉岭县| 军事| 日照市| 上高县| 庆云县| 华安县| 宁安市| 鸡东县| 二手房| 乌恰县| 安龙县| 荣成市| 安西县| 靖西县| 安庆市| 拜城县| 清徐县| 宜良县| 汤阴县| 吴桥县| 丰都县| 新乐市|