0
   

What are the usage of JavaScript?

 
 
Wed 13 Nov, 2013 02:47 pm
Being a very popular scripting language what are the main advantages and usage of JavaScript.
 
View best answer, chosen by Kathleenortan
timur
  Selected Answer
 
  3  
Wed 13 Nov, 2013 03:22 pm
@Kathleenortan,
Quote:
Advantages

Javascript is executed on the client side
This means that the code is executed on the user's processor instead of the web server thus saving bandwidth and strain on the web server.

Javascript is a relatively easy language
The Javascript language is relatively easy to learn and comprises of syntax that is close to English. It uses the DOM model that provides plenty of prewritten functionality to the various objects on pages making it a breeze to develop a script to solve a custom purpose.

Javascript is relatively fast to the end user
As the code is executed on the user's computer, results and processing is completed almost instantly depending on the task (tasks in javascript on web pages are usually simple so as to prevent being a memory hog) as it does not need to be processed in the site's web server and sent back to the user consuming local as well as server bandwidth.

Extended functionality to web pages
Third party add-ons like Greasemonkey enable Javascript developers to write snippets of Javascript which can execute on desired web pages to extend its functionality. If you use a website and require a certain feature to be included, you can write it yourself and use an add-on like Greasemonkey to implement it on the web page.

Disadvantages

Security Issues
Javascript snippets, once appended onto web pages execute on client servers immediately and therefore can also be used to exploit the user's system. While a certain restriction is set by modern web standards on browsers, malicious code can still be executed complying with the restrictions set.

Javascript rendering varies
Different layout engines may render Javascript differently resulting in inconsistency in terms of functionality and interface. While the latest versions of javascript and rendering have been geared towards a universal standard, certain variations still exist. Website Usability Consultants all over the world make a living on these differences, but it enrages thousands of developers on a daily basis.
0 Replies
 
 

 
  1. Forums
  2. » What are the usage of JavaScript?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 04/29/2024 at 01:16:44