Display JavaScript Output Using document.write()

document.write():-

Display JavaScript Output Using document.write()expoundsofttechsolution What is GMT?

To ingress an HTML element, JavaScript can use the document.write() method.

Example:-

<!DOCTYPE html>
<html>
<body>

<p>Show Output</p>

<script>
document.write(50 * 4);
</script>

</body>
</html> 

Output:-