JavaScript and Case Sensitivity

[ LiB ]

JavaScript and Case Sensitivity

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.

[ LiB ]


Learn JavaScript In a Weekend
Learn JavaScript In a Weekend, Second Edition
ISBN: 159200086X
EAN: 2147483647
Year: 2003
Pages: 84

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net