JavaScript UseCases

Pjore
3 min readJun 25, 2021

JavaScript

In order to make the web more dynamic, reduce verbosity, speed up development, and integrate animations, interaction, and other forms of small automation with the web, Netscape Communications was founded. Netscape developed the JavaScript programming language, the most widely used language for client-side scripting of web pages.

JavaScript is high level, interpreted, programming language used to make web pages are more interactive. It is primarily a frontend web development language that was built as a gap between Java and Scripting Languages. JavaScript is an object-based scripting language, it supports polymorphism, encapsulation and to some extent inheritance as well. It helps to implement complex designs on web pages. Javascript can execute not only in the browser but also on the server and any device which has a JavaScript engine. It helps to implement web applications, websites, and games.

Benefits Of JavaScript:

❇️JavaScript is Platform Independent: Any JavaScript-enable browser, which most browsers are, can easily understand and interpret JavaScript code. It is a free technology and doesn’t require you to go through any installation or configuration procedure.

❇️JavaScript Works on the Client-Side: While using a website, when you intend on doing some interaction, say clicking on a button, you are sending a request to the server which gets processed, and in return, you get a response.

❇️Frameworks: JavaScript is an Event-Based Programming Language. This means different code segments are executed in response to a user clicking a button or hovering a mouse.

❇️Procedural Programming Features

❇️JavaScript Can Help Run Multiple Tasks at Once: It supports concurrency. With JavaScript, you get an event loop module that can run several different sets of instructions at the same time.

❇️Versatility: JavaScript is capable of front-end as well as back-end development.

❇️Less Overhead: Code Length is short in JavaScript.

How PayPal uses Javascript:

PayPal uses JavaScript for the front end of their website. They use NodeJS. During an overhaul of their account overview page, they decided to try building the page in Node at the same time as their usual Java development. The NodeJS version worked out so well, that they chose to use it in production and build all client-facing applications in Node going forward. That means that most of what you see in your account is running on Node.

How Uber uses Javascript:

Uber needs to handle loads of data in real-time. They have millions of requests coming in continuously, and that does not just hit on a page. Uber needs to track driver locations, rider locations, and incoming ride requests. It has to seamlessly sort that data and match riders as fast as possible. All of that plays to NodeJS’s and JavaScript’s strengths. Node is designed to handle requests and handoff data quickly. Its asynchronous capabilities are a huge part of that. Node is central to Uber’s user-facing stack for just that reason.

Thanks For Reading😊😊😊

--

--