Hello World Program in JavaScript
In this tutorial, we will learn how to write a Hello World program in JavaScript. We will go through each statement of the program.
JavaScript Program
console.log("Hello, World!");
Output
Hello, World!
Working of the "Hello, World!" Program
console.log("Hello, World!");
This line prints the string "Hello, World!" to the console. Theconsole.log
method is used for outputting messages to the web console or terminal.