JavaScript Advantages and Disadvantages

This lesson highlights the JavaScript advantages and disadvantages. JavaScript is versatile and effective web languages used to extend functionality to make a rich websites. Following are JavaScript pros and cons.

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.