Tuesday, 23 April 2019

JavaScript – Introduction and Features


Introduction to JavaScript

JavaScript is a client-side programming language that is used to add programming logic to web pages. You can understand this way. HTML is a designing language and it only designs web pages.

You can not perform any logic in web pages via HTML. Like when you click on the user link, you want to do some processing by calling a function.

But you can not do this by HTML because HTML is used only to design web pages. For this, you need a programming language.

Makes a Web Page Dynamic

JavaScript is a similar programming language that adds logic to web pages and makes them dynamic. It was developed by Sun Micro Systems. Previously it was named Live Script. Which was later changed to javascript.

JavaScript has object-oriented programming capabilities. It is defined in the head section of the HTML file. If you do not use JavaScript, then you can not perform any calculations with HTML. You can also perform the validation by javascript.
JavaScript is a programming language that browsers understand and is used only for special web pages.

Features of JavaScript

There are 2 important features of JavaScript that are being given below.


JavaScript is capable of generating dynamic web pages. JavaScript is able to make changes to the web page itself when it is loaded. At the time of loading of web pages, it can be decided whether to perform tasks.

While this does not happen in HTML, all the action is already defined and you can not take any action in the load time of the web pages. HTML generates static pages. But JavaScript generates dynamic pages.

EXAMPLE- Any execution performs on the client side when you use JavaScript.

Client Side

JavaScript is a client-side scripting language. PHP executes on any execution server. But this is not the case with javascript. When you use JavaScript, for any execution to performs on the client side.

For example, JavaScript is performed in the web browser on the validation client side. But PHP does perform on the validation server. Because of this, the load of the JavaScript server reduces.

Advantages of JavaScript

Below are some of the advantages of using JavaScript.

Very Fast
JavaScript is very fast because of being a client side. Because it does not include time waste in connecting to the server. JavaScript is executed without connecting to the server.

Cross Platform
JavaScript runs smoothly on any browser and operating systems without any problems. All the latest browsers support javascript by default.

Works with Multiple Languages
JavaScript can work easily with other languages. Such as HTML, CSS, and PHP, etc.

JavaScript is a very simple language. Anyone can easily learn and implement it.

Disadvantages of JavaScript

There are also disadvantages of JavaScript with Advantages, which are given below.

Less Secure
The JavaScript code executes on the client side so some viruses can occur in it. Because of this JavaScript is not considered to be much secure.

Execution Vary
JavaScript offers different results on different browsers. But this is not the case with server-side scripting languages. Browser-side, whatever the server side script always gives the same result.

No Support for Network Applications
JavaScript can not work with applications, because there is no support available in JavaScript.

Disqus Comments