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

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';
主站蜘蛛池模板: 农安县| 城固县| 祁连县| 贵溪市| 兴业县| 武功县| 普格县| 忻城县| 封开县| 上高县| 邹城市| 英德市| 鄱阳县| 囊谦县| 武定县| 崇阳县| 柳林县| 满城县| 曲水县| 虞城县| 陇西县| 宁化县| 泸定县| 望江县| 乌兰察布市| 池州市| 阿拉善左旗| 宜良县| 灯塔市| 平邑县| 灵台县| 马鞍山市| 冷水江市| 汾阳市| 白山市| 余姚市| 松阳县| 花垣县| 贞丰县| 务川| 井陉县|