Question: Consider the following code: document.getElementById(demo).innerHTML = Hello World!; Select all the statements below that are false for the code above (hint: there are only 4
Consider the following code:
Select all the statements below that are false for the code above (hint: there are only 4 false statements):
** REMEMBER YOU ARE LOOKING FOR INCORRECT OR FALSE STATEMENTS **
A.
innerHTML is a method of the
DOM object referenced by the demo id
B.
getElementById("demo") is a method of the Document DOM object referenced by the document id
C.
The
HTML element will be a DOM object that will be modified when the code in the tag, then Hello World! would still be displayed on the page. It doesnt matter where the HTML element is since the javascript is executed after the page is loaded and the DOM objects are created.
J.
Before the code is run the value of the innerHTML property in the DOM object with id demo is "" (the empty string or no characters)
K.
innerHTML is a property of the
DOM object referenced by the demo id
L.
The id attribute demo in the
HTML element becomes a property of the DOM object
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
