Use-Cases of Java Script and NodeJs

kartik Bhardwaj
3 min readJun 25, 2021

The History of JavaScript:-

Adoption by Microsoft-

Microsoft debuted Internet Explorer in 1995, leading to a browser war with Netscape. On the JavaScript front, Microsoft reverse-engineered the Navigator interpreter to create its own, called JScript. JScript was first released in 1996, alongside initial support for CSS and extensions to HTML

JavaScript is everywhere, and for the seventh year in a row, it has been ranked the most commonly used programming language, with 67.8% of developers employing it in 2019. Its ascent to the world’s most popular programming language is synonymous with the rise of the internet itself.

Created out of necessity, it is used to build 95.2% (1.52 billion) of websites today, including some of the world’s largest, like Facebook and YouTube. Without it, we would not have popular and useful web apps such as Google Maps and eBay

“JavaScript” is a trademark of Oracle Corporation in the United States

what is javascript:-

JavaScript is the Programming Language for the Web and it can update and change both HTML and CSS. JavaScript can calculate, manipulate and validate data.

As a multi-paradigm language, JavaScript supports event-driven, functional, and imperative programming styles. It has application programming interfaces (APIs) for working with text, dates, regular expressions, standard data structures, and the Document Object Model (DOM).

Examples of scripted behavior

Loading new web page content without reloading the page, via Ajax or a WebSocket. For example, users of social media can send and receive messages without leaving the current page.

Generating pop-ups.

Validating input values of a web form before the data is sent to a web server.

Logging data about the user’s behavior then sending it to a server. The website owner can use this data for analytics, ad tracking, and personalization.

Use cases of NodeJS:

Node.js is so popular, quite a few major business enterprises are well-acquainted with the software. Companies that use Node.js include the following:

[ LinkedIn, Netflix, Uber, Trello, PayPal, NASA, eBay, Medium, Groupon, Walmart, Mozilla, GoDaddy ]

1:Uber

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.

Uber is a global transportation company, headquartered in San Francisco, CA. The company is doubling in size every 6 months, operates in 6 continents, 68 countries, 633 cities worldwide. Since its launch in 2012, Uber has become one of the most recognized alternatives to a traditional taxi. Therefore, Uber needs a platform that will keep running no matter what.

Their app connects driver-partners and riders, thus, it has to process an enormous amount of information at a fast-growing scale. Uber chose Node.js to build its massive matching system due to its ability to keep up with the pace of Uber’s huge business needs and enhanced data processing capabilities.

Benefits of Node.js for Uber:

  • Quick and reliable processing of extreme amount of data
  • Elimination of errors without the need to restart
  • Quick deployment of the new code
  • Strong open source community that constantly develops new solutions

--

--

kartik Bhardwaj

Learning in Linux World Summer Internship, Good in ML-OPS, Machine Learning/Deep Learning, Python and Much more..