Why Important use of JavaScript ?

Shanuka Prabodha Deshapriya
2 min readApr 3, 2021

Introduction of JavaScript

JavaScript is a client-side powerful object oriented scripting language.It used to make interactive webpage.In other words, we can make webpages having such as complex animations, buttons,popup windows with the help of JavaScript.

Nowadays Js can run not only the web browser , but also on the server.Web browsers embeded different JavaScript engines.For example :

· Chrome and opera — V8

· Firefox — Spider Monkey

· Microsoft Edge — ChakraCore

· Safari — Nitro and SquirreFish

JavaScript tun programs using single thred therfore JavaScript consider as single threaded language.

JavaScript is a dynamically typed language.When declaring a variable , does not need to specify what type this variable is because the errors occurs only the once program is executed.

JavaScript is asynchronous . It does not wait for I/O operations to get finished , instead of it keep excute the program.

What is JavaScript used for ?

· Creating web and mobile apps

Js is used to created web pages .It is allows to add dynamic behaviour to the webpage.Mainly it is used for validation purposes.Using JS load the page content without reloading the webpage and also JS can be used to created mosre powerful tool for creating mobile applications.Rect Native is the one of JavaScript framework for creating mobile applications.

· Develop web servers

Node.js is a JavaScript runtime environment which can run code on the sever side.This can used to create web servers fast ans transfer chunk of data.

· Adding interactive behaviors to web applications

JS can be used to creatre interact web pages.Some examples are given below

Show and hide more info on a click button.

Zooming and Zooming out on images

Playing video and audio on web page

Displaying animations

Changing colours when click and mouse hover.

· Game Development

JS also used for game developments.To create web games use JavaScript engines as PhysicsJS,Pixi.js and also used WebGL wich is an API for render 2D and 3D images on browsers.

Reasons Why use JavaScript than the other programming languages ?

  1. Most popular programming language.
  2. Powerful programming styles.
  3. Fun language for easy to learn.
  4. Native to web browsers.

Examples of companies that use JavaScript

Thanks for reading !…

--

--