Discuss case sensitivity in JavaScript.

What will be an ideal response?

Like XHTML, JavaScript is case sensitive, and within JavaScript code, object names must always be all lowercase. This can be a source of some confusion, because in written explanations about JavaScript, the names of objects are usually referred to with an initial capital letter. For example, throughout this book, theDocumentobject is referred to with an uppercase D. However, you must use a lowercase d when referring to theDocumentobject in a script. The statementDocument.write("Plant choices");causes an error message because the JavaScript interpreter cannot recognize an object namedDocumentwith an uppercase D.

Computer Science & Information Technology

You might also like to view...

Which of the following is a useful policy to minimize waste and mistakes?

A. Changes to HTML and URLs should be documented and authorized by end users. B. System report titles should be as brief as possible and should simply indicate the report number. C. Users should implement proper procedures to ensure correct input data. D. Tight control should be avoided over critical tables.

Computer Science & Information Technology

Many seasoned programmers start counter values at 1 because they are used to doing so when working with arrays.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology