Updated date:

What Is Javascript and Where It Is Used?


I am Lakshmi. I've completed my graduation in the stream of ECE. I love reading and like to listen more than I speak up.

Is Javascript a Scripting Languge?

Yes, As the name implies, It is a scripting language used to develop both client-side and server-side applications. When executing programming languages like C++ and Java, the compiler intakes the complete code as input and then converts it into the convenient machine language code and generates the specific output, whereas, in the case of scripting languages, the Interpreter interprets and executes the code line by line. The way of execution differentiates the scripting language from the programming language. But, javascript uses a compiler(JIT) to optimize the interpreted code. Both of them work simultaneously but don’t produce any intermediate object code(machine code).

Where Does the Javascript Code Execute?

Javascript requires a runtime environment called javascript engine for execution and, it should fulfill the ECMA script standard. All major browsers are having their in-built javascript engine to interpret the webpages. Javascript is incorporated with an HTML document using <script> tag and runs automatically when the page loads. Javascript allows you to develop interactive web pages and desktop applications.

Other than the browsers, Javascript can execute on any device which has an ECMAScript engine.Node.js is the open-source(https://nodejs.org/en/), a cross-platform runtime environment that uses the high-performance v8 engine of Google chrome to run Javascript outside the browser.

What is Node.js?

Node.js is a javascript framework/platform built on google chrome’s V8 engine to develop server-side and networking applications. Beyond that, It also provides a library of javascript modules to simplify the web development task.Node.js is asynchronous and event-driven so that it will never buffer and very fast in generating the output.

What Can You Do with Javascript?

  1. We can create interactive web pages and browser games.
  2. We can develop web servers.
  3. We can develop highly scalable networking applications like video streaming sites,single-page applications.
  4. Other frameworks of javascript like, React, React Native, Angular, and Vue are involved in mobile app development.


Lakshmi (author) from Chennai on October 09, 2020:

Hi Kalpana Iyer,Thank you for your appreciation and it really made my day .

Kalpana Iyer from India on October 09, 2020:

Thank you for explaining everything in such simple terms and in an uncomplicated way. I am a technical author, who keeps seeing javascript code regularly because of the industry I am in. It can get overwhelming at times because I am not a coder. You explained it well.