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

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';
主站蜘蛛池模板: 永和县| 公安县| 城固县| 泸定县| 蛟河市| 宝兴县| 呼玛县| 岳池县| 库尔勒市| 菏泽市| 娄烦县| 龙州县| 阳泉市| 松阳县| 忻城县| 团风县| 潞西市| 察哈| 延吉市| 百色市| 历史| 逊克县| 会同县| 扶风县| 三都| 教育| 涪陵区| 西林县| 汝州市| 新昌县| 兴和县| 清水河县| 周至县| 惠州市| 穆棱市| 牟定县| 赣州市| 长宁县| 蕲春县| 喀喇| 泌阳县|