Javascript Case Sensitivity

Basically JavaScript is a case-sensitive scripting language. It means that the language considers capital letters as different from their lowercase counterparts. For example, if you declare a variable called customerName in JavaScript, you have to use customerName to refer to that variable not CustomerName, CUSTOMERNAME, or some other combination.

JavaScript case sensitivity apply to JavaScript keywords also, event handlers, and object properties or methods. Keywords in JavaScript are all lowercase, for example, while, for, if, else, and so on. On the other hand, methods (properties) use "camel-back" naming convention (first word is in lowercase and each successive first letter of each word is capitalized), for example, toArray(), lastModified(), and so on.

Javascript Case Sensitivity Example