document.write() method writes a string of text or HTML expressions to a document.
Note: If the document.write() call is embedded within an inlined HTML <script> tag, then it is necessary to call document.open() method before writing to a document and document.close() after writing to a document.
Warning: The document.write() method will delete all existing HTML, if it is used after a fully loaded HTML document.
Please do google search for:
Join Our Channel
This channel is primarily useful for Full Stack Web Developer.