In this example, you will learn to print 'Hello World' in JavaScript using the document.write() function.
A "Hello, World!" program is a basic program that prints the phrase "Hello, World!" on the screen. Because it is a fairly basic program, it is frequently used to teach newcomers a new programming language.
PROGRAM :
document.write("Hello World");