Home »
MCQs »
JavaScript MCQs
Which JavaScript method is used to write HTML output?
11. Which JavaScript method is used to write HTML output?
- document.write()
- document.output()
- console.log()
- document.writeHTML()
Answer: A) document.write()
Explanation:
The JavaScript method document.write() defines the HTML output.