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

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';
主站蜘蛛池模板: 河南省| 柳江县| 百色市| 茂名市| 马龙县| 建平县| 准格尔旗| 昭觉县| 江华| 江孜县| 淮滨县| 汝州市| 灵山县| 孝感市| 广州市| 通辽市| 阳朔县| 伊川县| 宁波市| 金溪县| 华蓥市| 金阳县| 永平县| 阿勒泰市| 翁牛特旗| 辽阳县| 陆河县| 阿坝| 云霄县| 靖江市| 大埔区| 故城县| 方正县| 周口市| 拉萨市| 永德县| 泉州市| 科技| 武鸣县| 江西省| 阳江市|