Divya Kurothe

Jun 25, 2021

13 min read

Everything about JavaScript

What is JavaScript?

  • Client-side JavaScript extends the core language by supplying objects to control a browser and its Document Object Model (DOM). For example, client-side extensions allow an application to place elements on an HTML form and respond to user events such as mouse clicks, form input, and page navigation.
  • Server-side JavaScript extends the core language by supplying objects relevant to running JavaScript on a server. For example, server-side extensions allow an application to communicate with a database, provide continuity of information from one invocation to another of the application, or perform file manipulations on a server.

History of JavaScript

The first non-beta version of Netscape Navigator (Source: ARN)
The most popular programming languages in Stack Overflow’s 2018 Developer Survey.

JavaScript’s Popularity

  1. JavaScript can be used in both the front-end and back-end of web development.
  2. JavaScript is standardized, so it’s frequently updated with new versions.
  3. JavaScript works with the document object model, or the DOM, to respond to user interactions. The DOM is the structure in the browser that displays a web pages.
  4. JavaScript allows websites to have interactivity like scroll transitions and object movement. Modern browsers still compete to process JavaScript the fastest for the best user experiences. Chrome, the most used Internet browser in 2017, has been so successful in part because of its ability to process JavaScript quickly.
  5. JavaScript offers a wide range of frameworks and libraries that help developers create complex applications with low overhead. Programmers can import libraries and frameworks in their code to augment their application’s functionality.

Features of JavaScript

General JavaScript Features

1. Validating User’s Input

2. Simple Client-side Calculations

3. Greater Control

4. Platform Independent

5. Handling Dates and Time

6. Generating HTML Content

7. Detecting the User’s Browser and OS

Modern JavaScript Features

1. Let/Const

2. Arrow Functions

3. Template Literal

4. New Array Functions

5. Default Parameters

6. Property Shorthand

Uses of JavaScript

1. Web Development

2. Web Applications

3. Presentations

4. Server Applications

5. Web Servers

6. Games

7. Art

8. Smartwatch Applications

9. Mobile Applications

Which Companies Use JavaScript

Microsoft

PayPal

Netflix

Uber

Facebook

Google