EN
JavaScript - Hello world
0
points
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.