What-is-JavaScript?

What is JavaScript, and why do we use it in web applications?

JavaScript, the most used programming language in web applications.

It is mainly used as a programming language to make a website work. For frontend development, there are three main languages HTML, CSS, and JavaScript. If you plan to learn JavaScript or become an expert in frontend development, you have to learn these three languages.

HTML is like a blueprint or a structure. It determines what and where the data will be displayed on the webpage.

If you create a page and you write something just using HTML, you will see the text on that page without any styling.

CSS is the styling, and it helps to style the web pages. It determines what an HTML element actually will look like. Colors, fonts, sizes, positioning, etc.

If you want to move a web page component, color background, or change font color, you have to use CSS to do that.

Now about JavaScript, it’s a programming language that helps to do things like mathematical operation, DOM manipulation, button events, pull information from APIs, and make it visible to the web pages, and so much more.

If you don’t know about these things, don’t worry, you can google it or follow up on my blog to learn more about them.

JavaScript is actually responsible for performing actions. Let’s see some examples to make it clear to you.

When you go to the home page and click on the Waffle (Nine dots) button located on the top right corner, a menu comes up. That’s actually made with the help of JavaScript.

If you are familiar with Stackoverflow, you may notice that a warning comes up when you click on the answer box to write the answer.

When you upvote and downvote a post, the number of votes increases and decreases, respectively. These frontend changes are made using JavaScript.

But the number of upvotes and downvotes data are sent in the database via backend programming languages like PHP, Python, etc.

JavaScript has a chance to work when you load a page, move your mouse, click on something or type a letter on your keyboard.

Without JavaScript, we would have to load a whole separate page for your notifications. Actually, each time you clicked on something that takes any action, we would have to load a totally different page.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Scroll to Top