Jima Victor
webcodespace

webcodespace

Simple Hello World Program in Javascript

Jima Victor's photo
Jima Victor
·Oct 7, 2021·

1 min read

Simple Hello World Program in Javascript

Subscribe to my newsletter and never miss my upcoming articles

Listen to this article

Hello world!!

This would be a very basic tutorial on how to write your very first javascript program.

This tutorial is geared towards beginners and anyone who ones to start learning Javascript.

Now, to keep things really simple, we're not going to be installing any code editor or IDEs.

All you need for this to work is your good old web browser.

Let's begin..

Step 1:

Open your preferred browser.

Step 2:

Press either CTRL + SHIFT + I or F12 to open the Developer Tools.

Step 3:

Click on the console tab to enter into the developer console.

Step 4:

Write the following code in the developer's console.

console.log("Hello World");

Then press Enter.

Congratulations! You have written your very first javascript program.

Now, to have a little fun, you can try out other variations of this code like:

console.log(6 + 4);

or

console.log("Programming is hard but really fun");

or

alert("hello world");

or

alert(6 + 6);

You get the idea. Happy coding!!

 
Share this