Answer & Solution
Answer: Option Option C
Solution:
The primary purpose of using document.write() in JavaScript is to generate and output dynamic content to a webpage. It allows for the creation of HTML content dynamically, which can be inserted directly into the document during runtime, providing flexibility in generating content based on user interactions or other conditions.