B. x = 10;
y = 5;
x !== "X"
C. x = 10;
y = 5;
x === y;
D. x = 10;
y = 5;
x == y;
Answer(s): B
QUESTION: 18
Which statement is true about the getElementByID() method?
A. It returns only the first element with the specified ID.
B. It returns an array containing all elements with the specified ID.
C. If a match is not found for the specified ID, it will attempt searching by name.
D. If a match is not found for the specified ID, it will attempt searching by tag name.
Answer(s): A
QUESTION: 19
Consider the following code:
Wil this function generate an error?
A. No, because the code is well-formed
B. Yes, because the alert syntax is incorrect
C. Yes, because there are no valid variables returned
D. Yes, because the passed arguments have not been defined before the function call
Answer(s): D
QUESTION: 20
Which script block wil display Hello World in the browser when the script is run?
8