Home » Online Computer Education » Learn about JavaScript and Case Sensitivity.

Learn about JavaScript and Case Sensitivity.

javascript-is-case-sensitiv

You have to be extremely careful when keying in the text of your JavaScripts. JavaScript is a case sensitive programming language (unlike HTML, which enables you to use different capitalization when defining HTML tags). Case sensitivity means that you must type JavaScript elements exactly as they appear in this book in order for them to work. For example, as far as JavaScript is concerned, the words document and Document refer to two different things, so pay special attention when typing your scripts. If I had accidentally typed a capital D in the document.write() statement used in the preceding example, my script would have experienced an error. As a result, the Hello World message would not have been displayed as I intended.

About

The main objective of this website is to provide quality study material to all students (from 1st to 12th class of any board) irrespective of their background as our motto is “Education for Everyone”. It is also a very good platform for teachers who want to share their valuable knowledge.

Leave a Reply

Your email address will not be published.