Get Started With JavaScript

Vish Katyan
2 min readAug 31, 2023

--

Get Started With JavaScript Image ~vishkatyan
JavaScript

If you are in the IT field, then you must hear about the programming language JavaScript. There is also a myth that Java and JavaScript are the same, the fact is no, when javascript was made Java was a popular language, so its name was decided as javascript.

According to a survey in 2022, 98% of companies used javascript. So, JavaScript is a scripting language widely used in Website Development, App Development, Flying Robots, Games, etc… Here we’ll discuss how to start with JS.

JS is a case-sensitive language used to build logic integrated with web pages that makes web pages interactive and dynamic. It provides functionality to our websites. For example, If I wish to make certain changes to the content whenever the user clicks on a particular button.

Write your first line of code in JavaScript:

As we start every language with its Hello World Code, here we’ll also start with Hello World. So, writing Hello World in JS with three methods is quite simple. Let’s discuss one by one…

1. Writing on the Screen (Document)

document.write('Hello World!');

Document represents the screen and write indicates that write the certain string embedded into single quotes on the screen.

2. Writing on Console

Whenever you open the developer tool you can see clearly the console window. Writing any code into the console will be shown at that window.

console.log('Hello World!');

The String within single quotes will be shown in the console or whatever we write here will be shown.

3. Display the string in Pop-up

Another way to display your Hello World text using a pop-up.

alert('Hello World!');

The alert indicates the pop-up bar with the string enclosed in single quotes.

That’s all about today’s blog. We’ll discuss more later.

Hope it’ll help. You can now Buy Me A Coffee.

Thank You :)

--

--

Vish Katyan

Hi I am Vishakha, a blogger, content creator and a developer.