Features, Advantages and Disadvantages of JavaScript

0

JavaScript is a client side technology, it is mainly used for gives client side validation.

Features of JavaScript

  • JavaScript is a object-based scripting language.
  • Giving the user more control over the browser.
  • It Handling dates and time.
  • It Detecting the user’s browser and OS.
  • It is light weighted.
  • JavaScript is a scripting language and it is not java.
  • JavaScript is interpreter based scripting language.
  • JavaScript is case sensitive.
  • JavaScript is object based language as it provides predefined objects.
  • Every statement in JavaScript must be terminated with semicolon (;).
  • Most of the JavaScript control statements syntax is same as syntax of control statements in C language.
  • An important part of JavaScript is the ability to create new functions within scripts. Declare a function in JavaScript using function keyword.

Limitations of JavaScript

JavaScript have some limitation which are given below:

  • Client-side JavaScript does not allow the reading or writing of files.
  • It cannot be used for networking applications because there is no such support available.
  • It doesn’t have any multi threading or multiprocessor capabilities

JavaScript Advantages

The biggest advantages to a JavaScript having a ability to produce the same result on all modern browsers.

Client-Side execution: No matter where you host JavaScript, Execute always on client environment to save a bandwidth and make execution process fast.

User Interface Interactivity: JavaScript used to fill web page data dynamically such as drop-down list for a Country and State. Base on selected Country, State drop down list dynamically filled. Another one is Form validation, missing/incorrect fields you can alert to a users using alert box.

Rapid Development: JavaScript syntax’s are easy and flexible for the developers. JavaScript small bit of code you can test easily on Console Panel (inside Developer Tools) at a time browser interpret return output result. In-short easy language to get pick up in development.

Browser Compatible: The biggest advantages to a JavaScript having a ability to support all modern browser and produce the same result.

Make XMLHttpRequest() Object: XMLHttpRequest is special JavaScript object that was designed by Microsoft. XMLHttpRequest object call as a asynchronous HTTP request to the Server for transferring data both side without reloading the page.

JavaScript Disadvantages

Biggest disadvantages to a JavaScript, code visible to everyone.

Code Always Visible: The biggest disadvantages is code always visible to everyone anyone can view JavaScript code.

Bit of Slow execute: No matter how much fast JavaScript interpret, JavaScript DOM (Document Object Model) is slow and will be a never fast rendering with HTML.

Stop Render: JavaScript single error can stop to render with entire site. However browsers are extremely tolerant of JavaScript errors.

Share.

Leave A Reply