JavaScript Hello World Program


JavaScript Hello World Program

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

  1. console.log("Hello, World!");
    This line prints the string "Hello, World!" to the console. The console.log method is used for outputting messages to the web console or terminal.