Languages
[Edit]
EN

JavaScript - Hello world

0 points
Created by:
Kia-H
546

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. 

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

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.

❤️💻 🙂

Join