1.
What is the primary purpose of using document.write() in JavaScript?
2.
How does document.write() differ from innerHTML in JavaScript?
3.
When is it recommended to use document.write() in JavaScript?
4.
What happens if document.write() is executed after the document has finished loading?
5.
Which of the following is a limitation of using document.write() in JavaScript?
6.
How does document.write() impact the performance of a webpage?
7.
Which scenario is appropriate for using document.write() in JavaScript?
8.
How can document.write() be used to create a simple HTML structure?
9.
Which JavaScript feature complements document.write() for dynamic content generation?
10.
Which approach should be followed when using document.write() in JavaScript for dynamic content?