...
NVS PGT CS 2017 Part-B
October 14, 2023
NVS PGT CS 2017 Part-B
October 14, 2023
NVS PGT CS 2017 Part-B
October 14, 2023
NVS PGT CS 2017 Part-B
October 14, 2023

NVS PGT CS 2017 Part-B

Question 15
Identify the statement that is equivalent to the given statement : document. write (“Hello! Welcome to JavaScript”)
A
window.document.write (“Hello! Welcome to JavaScript”)
B
body.document.write. (“Hello! Welcome to JavaScript”)
C
location .document.write (“Hello! Welcome to JavaScript”)
D
document.writeln (“Hello! Welcome to JavaScript”)
Question 15 Explanation: 
The document object (of the HTML DOM) is a property of the window object. The statement window.document.write () is equivalent to document.write() statement.
Correct Answer: A
Question 15 Explanation: 
The document object (of the HTML DOM) is a property of the window object. The statement window.document.write () is equivalent to document.write() statement.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!