JavaScript - Hello world

0 points
Created by:
Dirask Admin - Marvin

This article will show you how to print "Hello, World" in JavaScript.

Here are three ways to display "Hello world":

1. Using alert()

alert() method displays a new message box.

// ONLINE-RUNNER:browser;

alert("Hello, World!");


2. Using console.log()

// ONLINE-RUNNER:browser;

console.log("Hello, World!");

console.log() method allows the message to be displayed in the console. 

JavaScript tutorial

Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂