In this article, you will figure out how to print ‘Hello, World!’ in JavaScript using document.write().
A “Hello, World!” is a straightforward program that prints Hello, World! on the screen. Since it’s an exceptionally short program, it is regularly used to acquaint a new programming language.
Hello World JavaScript Program
document.write('Hello, World!');
The output would be as follows:
Hello, World!
Leave a Reply