JavaScript Code

Print Hello World – JavaScript Program

Print Hello World Program

In this tutorial, you write a JavaScript program with a function that prints 'Hello World' message to the console.


To print a string to standard console output in JavaScript, you can use console.log() function.


In the following program, we print 'Hello World' message to standard output.

console.log('Hello World');