Print Hello World Program
In this tutorial, you write a JavaScript program with a function that prints 'Hello World'
message to the console.
Solution
To print a string to standard console output in JavaScript, you can use console.log()
function.
Program
In the following program, we print 'Hello World'
message to standard output.
console.log('Hello World');