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...

The SAMM contains ________ security practices, each of which consists of three maturity levels.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Consider the classes below:

public class TestA { public static void main(String args[]) { int x = 2; int y = 20 int counter = 0; for (int j = y % x; j < 100; j += (y / x)) counter++; } } public class TestB { public static void main(String args[]) { int counter = 0; for (int j = 10; j > 0; --j) ++counter; } } Which of the following statements is true? a. The value of counter will be different at the end of each for loop for each class. b. The value of j will be the same for each loop for all iterations c. Both (a) and (b) are true. d. Neither (a) nor (b) is true.

Computer Science & Information Technology

In Linux, what command can be used for viewing and setting wireless interface parameters?

a. ifconfig b. iwconfig c. wlanconf d. wifid

Computer Science & Information Technology

If the graph is ____, the intersection in the adjacency matrix indicates the direction.

A. disjoint B. a tree C. undirected D. directed

Computer Science & Information Technology