what are the advantages of JavaScript?
Answers
Answer:
The advantages of using JavaScript are:
Less server interaction: You can validate user input before sending the page off to the server. This saves server traffic, which means less load on your server.
Immediate feedback to the visitors: They don't have to wait for a page reload to see if they have forgotten to enter something.
Increased interactivity: You can create interfaces that react when the user hovers over them with a mouse or activates them via the keyboard.
Richer interfaces: You can use JavaScript to include such items as drag-and-drop components and sliders to give a Rich Interface to your site visitors.
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.
HOPE IT HELPS...