Simple Hello World Program in Javascript
Jima Victor
Posted on October 18, 2021
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!!
Posted on October 18, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.