Page 282 - Web Applications (803) Class 11
P. 282
Ð ÐIt is simpler to learn than other programming languages such as C++.
Ð ÐNowadays, browsers include a JavaScript Just in Time (JIT) compiler, so the code does not need to be compiled
externally while running.
Disadvantages of JavaScript
Because JavaScript is a client-side scripting language, it functions as an interpreter rather than a compiler. Aside from its
benefits, JavaScript has a number of disadvantages that can arise.
Some of them are as follows:
Ð ÐThe most significant drawback of JavaScript is that its code is visible to everyone, so anyone can make changes to
the code easily.
Ð ÐIt is very slow as compared to HTML. So, in cases with low networks, users face problems with HTML getting loaded
quickly but not JavaScript.
Ð ÐIt is sometimes interpreted differently by different browsers. Different layout engines may render JavaScript
differently, resulting in inconsistency in terms of functionality and interface.
Do You Know?
There are about 1.7 billion websites on the Internet from which 95% websites use
JavaScript.
4.4 REASON FOR CHOOSING JAVASCRIPT
HTML is capable of producing pages that are more or
less static. The view doesn’t alter much once you load Development
of
them up until you click a link to go to a new page. Adding Mul media
JavaScript to your code, on the other hand, allows you Applica ons
to alter the appearance of the page in a variety of ways,
like changing the text, changing the colours, changing the
options accessible in a drop-down list, and much more.
Suppliments
The majority of JavaScript operations are instantaneous. Client and Uses of Dynamic
Page
Sever Side
In reality, JavaScript is frequently utilised to accomplish Processing JavaScript Crea on
tasks that would otherwise slow down the server, such
as form validation. This work load allocation to client-side
services considerably speeds up the process.
JavaScript has various uses/applications as shown below:
Valida on of
Ð ÐDevelopment of Multimedia Applications: JavaScript User Input
can be used by the user to include multimedia elements
like images, audio, video, animations, etc. within the
web pages. You can show, hide, modify, resize, and create picture rollovers with JavaScript. By adding scrolling text
to the status bar, multimedia applications can become more engaging.
Ð ÐDynamic Page Creation: JavaScript allows the users to change the elements of the web pages dynamically.
Ð ÐValidation of User Input: This is one of the primary applications of JavaScript, which allows users to validate input
entered into various types of fields such as textboxes.
Ð ÐSupplements Client and Sever Side Processing: JavaScript can be processed on the client side as well as the server
side.
280 Touchpad Web Applications-XI

