JAVASCRIPT USE CASES

Saranya. S
7 min readJun 15, 2021

WHAT IS JAVASCRIPT ??

        JavaScript is the Programming Language for the Web.
  • JavaScript is a scripting or programming language that allows you to implement complex features on web pages::

→ Every time a web page does more than just sit there and display static information for you to look at

→ Displaying timely content updates, interactive maps, animated 2D/3D graphics, scrolling video jukeboxes, etc.

→ You can bet that JavaScript is probably involved.

  • It is lightweight and most commonly used as a part of web pages, whose implementations allow client-side scripts to interact with the user and make dynamic pages.
  • It is an interpreted programming language with object-oriented capabilities.
  • JavaScript was first known as LiveScript, but Netscape changed its name to JavaScript, possibly because of the excitement being generated by Java.
  • JavaScript is also a text-based programming language used both on the client-side and server-side that allows you to make web pages interactive.

→ Where HTML and CSS are languages that give structure and style to web pages, JavaScript gives web pages interactive elements that engage a user.

  • JavaScript improves the user experience of the web page by converting it from a static page into an interactive one.
  • Common examples of JavaScript that you might use every day include the search box on Amazon, a news recap video embedded on The New York Times, or refreshing your Twitter feed.

WHY JAVASCRIPT ??!

Aside from the unlimited possibilities, there are many reasons for web developers to use JavaScript over other programming languages:

  • Speed: Client-side JavaScript is very fast because it can be run immediately within the client-side browser. Unless outside resources are required, JavaScript is unhindered by network calls to a backend server.
  • Simplicity: JavaScript is relatively simple to learn and implement.
  • Popularity: JavaScript is used everywhere on the web.
  • Interoperability: JavaScript plays nicely with other languages and can be used in a huge variety of applications.
  • Server Load: Being client-side reduces the demand on the website server.
  • Gives the ability to create rich interfaces.

JS USED FOR …

  • > JavaScript is mainly used for web-based applications and web browsers.
  • >But JavaScript is also used beyond the Web in software, servers and embedded hardware controls.
  • >Here are some basic things JavaScript is used for:
1. Adding interactive behavior to web pages
  • JavaScript improves the user experience of the web page by converting it from a static page into an interactive one.
  • There are almost no limits to the things you can do with JavaScript on a web page — these are just a few examples:

-> Show or hide more information with the click of a button

-> Change the color of a button when the mouse hovers over it

-> Slide through a carousel of images on the homepage

-> Zooming in or zooming out on an image

Many More ….

2. Creating web and mobile apps
  • Developers use various JavaScript frameworks for developing and building web and mobile apps.
  • JavaScript frameworks are collections of JavaScript code libraries that provide developers with pre-written code to use for routine programming features and tasks.
  • Popular JavaScript front-end frameworks include React, React Native, Angular, and Vue.
  • A few famous examples include Paypal, Linked In, Netflix, and Uber.
3. Building web servers and developing server applications
  • Beyond websites and apps, developers can also use JavaScript to build simple web servers and develop the back-end infrastructure using Node.js.
4.  Game development
  • JavaScript is used to create browser games.

HOW JS USED ACROSS INDUSTRIES ???

| The use of JavaScript varies by industry. The top industries were:

  • Finance: 7%
  • Advertising and Marketing: 5%
  • Education: 5%
  • Entertainment: 5%
  • Business support and logistics: 4%
  • Healthcare: 4%
  • Retail: 3%
  • Government: 2%
  • Manufacturing: 2%

-> There were meaningful differences across industries in how and why people use JavaScript.

  • > Manufacturing Industries use less of everything.
  • > Angular was a fairly popular choice across all industries, but strongest in finance. Developers in entertainment were the least likely to use Angular, their strongest preference being for React.

WORLD’S LARGEST TECH COMPANIES USING JS...

MICROSOFT

  • > Microsoft needs to work closely with JavaScript to built its Edge web browser.
  • > All browsers need to process and execute JavaScript efficiently, so Microsoft has developed and maintains its own JavaScript engine for Edge.
  • > Microsoft has also developed a version of Node for Internet Of Things(IoT) applications. NodeJS is great for IoT because it’s lightweight and efficient.

PAYPAL

  • > PayPal uses JavaScript on the front end of their website for a long time, but that’s only the beginning.
  • > The online payment giant was one of the earliest adopters of 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.

NETFLIX

  • > Netflix moved away from its more traditional structure into the cloud and started to introduce NodeJS.
  • > With Node, Netflix was able to break down pieces of their user interface into individual services.
  • > This more distributed approach was able to speed things up and alleviate stress on their servers.
  • > Today, a large portion of Netflix’s interface is running on Node.

FACEBOOK

  • > Try disabling JavaScript in your web browser and go to Facebook. The website will actually stop you from logging in because it won’t work without JavaScript.
  • > Each section of your Facebook page is a collection of independent JavaScript applications.
  • > Facebook created React, one of the most popular front-end frameworks. Facebook uses React on Facebook.com as well as Instagram and WhatsApp.

GOOGLE

  • > Google’s search results spring up as your typing gets there with JavaScript.
  • > The Gmail web client is powered by JavaScript.
  • > Google develops and usually opens sources its own JavaScript tools. The most obvious example is AngularJS.
  • > Angular is used most prominently in Google’s DoubleClick advertising platform, but it’s also one of the most popular front-end frameworks available.
  • > Google’s more intensive services, like Google Docs, use Closure Tools. This set of tools compiles JavaScript into a lower-level faster form more suited for rich and highly responsive web applications.
  • > Chrome, being a web browser, needed a JavaScript engine, so Google also made V8. V8 not only powers Chrome, it’s at the heart of NodeJS. So, without Google, there would be no Node.

LINKEDIN

  • > LinkedIn relies on NodeJS for its mobile site.
  • > LinkedIn switched over to NodeJS to solve its scaling problems.
  • > Node’s asynchronous capabilities allowed the LinkedIn mobile site to perform more quickly than before while using fewer resources.
  • > Node also made data sharing and building APIs easier for LinkedIn developers.

FUTURE OF JAVASCRIPT …

^ JavaScript is not the only client-side scripting language on the Internet, it was one of the first and it is still the most widely used.

^ Many developers believe that JavaScript is inefficient and finicky, so they have made many improvements to the language over the years.

^ Enterprising programmers have created JavaScript libraries — more concise languages constructed from the building blocks of JavaScript that are less complex and can be targeted for specific applications.

^ For instance,

  • JQuery is a JavaScript library that simplifies and expands many of JavaScript’s animation and interactive functions
  • Backbone.js makes responsive design easier.

^ JavaScript has become integral to the Internet experience as developers build increased interaction and complexity into their applications.

CONCLUSION …

|| JAVASCRIPT IS EVERYWHERE! Search engines, e-commerce, content management systems, responsive design, social media, and phone apps would not be possible without Javascript. Many companies are also running the largest production deployments of NodeJS. The others are responsible for important parts of the JavaScript ecosystem as a whole. In conclusion, JavaScript is extremely versatile and flexible.||

--

--