DEV Community

Cover image for What is JavaScript ? Why use JavaScript? πŸ”₯πŸš€
Majedur Rahman
Majedur Rahman

Posted on

What is JavaScript ? Why use JavaScript? πŸ”₯πŸš€

What Is JavaScript? ✨

JavaScript is a high-level programming language. it's originally designed to add interactivity to web pages.

(high-level language means it's closer to human languages and further from machine language).

JavaScript also defined as interpreted, object-oriented, prototype-based, just-in-time compiled, multi-paradigm with dynamic typing programming language. it's one of the core & leading technologies used in the web (world wide web) alongside with HTML and CSS.

A bit of history πŸ—ΊοΈ

1995 in the offices of Netscape where the first version of JavaScript was born. At that moment though, Netscape's was one of the most popular web browsers.It's to support it that JavaScript was created, as a companion language to Java.
Back then, the web was fully-static, powered by simple HTML & CSS. JS brought dynamism.
Even after the death of Navigator, it was eventually adopted by all succeeding web browsers, from Explorer to Firefox and Chrome.

JavaScript was born in a hurry though, and various quirks would harm the language adoption in its early years. Still, some of its powerful features were part of it since its inception. These would define JS and allow it to grow.

The next big step following the public release came with ECMA standardization, which became the β€œconvention” behind JavaScript. It brought the language to a broader audience and allowed other potential implementors.

Why do we Need JavaScript? πŸš€

JavaScript is a crucial programming language for any web developer.
Without JavaScript, we wouldn’t have the dynamic and interactive web pages that have become the standard user experience we all know.
Initially JavaScript comes as client-side language, which is executed in browsers.but modern JavaScript support up both front-end and back-end in web application development.

In front-end, JavaScript client-side execution of the logic brings faster user experiences. With the code running directly in the browser, the need for server calls is abstracted, hence a cut in loading times. Even with the presence of a server, the fact that JS is asynchronous means that it’s able to communicate with the server in the background without interrupting the user interaction taking place in the front-end.

When it's used for back-end, the Node.js framework allows a server to handle front-end data updates and build scalable network applications to process simultaneous user requests.

JavaScript Everywhere

Besides front-end & back-end in web, we need JavaScript in mobile app, desktop app development.πŸ”₯πŸ”₯πŸ”₯

Top comments (0)