Javascript Is Case Sensitive Options

codeling Posts: 1153 Points: 4845
Posted: Wednesday, November 27, 2019 11:49:13 AM

JavaScript is a case-sensitive language. This means that language keywords, variables, function names, and any other identifiers must always be typed with a consistent capitalization of letters. The while keyword, for example, must be typed “while”, not “While” or “WHILE”.

 

codeling Posts: 1153 Points: 4845
Posted: Wednesday, November 27, 2019 11:54:08 AM

Some tags and attributes in HTML have the same name as JavaScript objects and properties. In HTML, the attribute and tag names are case-insensitive. The close association of HTML and JavaScript can lead to confusion, so case sensitivity is more important in JavaScript. For example, HTML onclick event attribute is mentioned as onClick or onclick in HTML but should be onclick in JavaScript.

Users browsing this topic
Guest