Answer & Solution
Answer: Option Option C
Solution:
document.write() can be used to dynamically load external content in JavaScript by generating <script>
tags with external sources dynamically. This approach allows developers to dynamically insert external JavaScript files into the document, enabling the loading of external scripts based on conditions or user interactions. However, developers should use caution when dynamically loading external content to ensure security and prevent vulnerabilities such as XSS (Cross-Site Scripting) attacks.