JavaScript Introduction

by Monika Dadool 13-Jun-19

0 1882

JavaScript is an object-oriented Scripting language which can be embedded into any HTML page. It permits complex task implementation on web pages.

Once JavaScript is embedded in any webpage, we can able to integrate various functionalities to make page more interactive such as validation animations. JavaScript contains an in-built object i.e. window object.

Entire behaviors of the webpage can be set through JavaScript programming.

a) It is a cross platform scripting language i.e. compatible with multiple operating systems such as Linux, Windows, etc.

b) It supports entire features of object-oriented programming except inheritance and polymorphism. Since it is an object-oriented language, it makes use of prototypes instead of classes.

c) It is an interpreted language i.e. does not require to be compiled like traditional languages C, C++, and Java. There is no need of a compiler to run a JavaScript program.

d) It is a lightweight scripting language containing diminutive memory footprints, less complex syntax, and programs written in JavaScript can be easily implemented in real world. JavaScript is supported by web-browsers because every browser contains built-in interpreters to execute JavaScript's program.

e) It is a client site scripting language i.e. execute on client's computer. Now you can run JavaScript on server side also. For example NodeJS.

f) JavaScript is evolving a lot with advanced capabilities. Example of some popular frameworks that are gaining popularity are NodeJS, React JS for application, AngularJS, electron JS.

Related Blog: JavaScript Interview Questions

Where did JavaScript execute?
JavaScript runs on a browser. You only need to open browser and run it. Browser contains embedded JavaScript engine which converts into machine language and execute the code.

E.g. Chrome contains V8 engine.

Before Starting learning JavaScript, a great knowledge of all concepts of HTML and CSS are required.

Access of any installed browser.

Knowledge of programming languages like C++, Java (helpful but not mandatory)

Where JavaScript is incorporated?

a) To build an interactive websites

b) To permit clean and accurate client-side validation

c) Clock displays including data and time

d) JavaScript is incorporated for dynamic drop-down menu

e) To displays pop-up windows and dialog box

Interaction between JavaScript through diagrammatically

JavaScript does entire heavy lifting.

JavaScript Introduction

Process of coding include three process:

a) Writing

b) Loading

c) Executing


* In this we can write a code in notepad or any other IDE like notepad++

* Through writing, we can create a page in HTML by writing HTML code

* We can integrate style via CSS

* We can create a separate JavaScript code file.


* It redirects your browser to the page

* When browser comes across code, it begins parsing and makes efforts to ignore errors

* In this parsing and error detecting take place


Browser begins executing code.

Applications of JavaScript:

* Smart Watches

* Website

* Web Servers

Advantages of JavaScript:

* As a JavaScript is mostly executed on client side, it involves less server interactions which in turn enhance performance because the page will not post again and again on the server. Due to this, it is concluded that JavaScript Enhance performance, more interactions and Involve less server interactions

* JavaScript improve web appearance especially visual feedback and Graphics used in pages.

* It improves site navigation.

* It permits performing various calculation and validations.


Leave a Reply

    Waiting for your comments