document.write Function
First Javascript program using document.write?
Explanation
We will begin with the in built method or function document.write() to code our first javascript program.
This method helps to write any given variable on the browser.
Example:
<html>
<head></head>
<body>
<script language=javascript>
document.write("This is my first javascript program");
</script>
</body>
</html>