JAVASCRIPT
JavaScript. is an object-oriented language that - allows
creation of interactive web pages.
JavaScript allows user entries, which are loaded into an
HTML form to be processed as required.
JavaScript offers several advantages to a Web developer
such as a short development cycle, ease of learning, small
size scripts and so on.
The strength of JavaScript can be easily and quickly used to
extend the functionality, of HTML pages, already on a web
site.
ADVANTAGES OF JAVASCRIPT
ADVANTAGES OF dxV¥RO ee
An Interpreted Language: JavaScript is an interpreted
language, which requires no complication steps. This
provides an easy development process. The syntax is
completely interpreted by the browser just as it interprets
HTML tags.
Embedded within HTML: JavaScript does not require any
special or separate editor for programs to be written,
edited or compiled. It can be written in any text editor like
Notepad, along with appropriate HTML tags, and saved as
filename.html. HTML file with embedded JavaScript
commands can then be read and interpreted by any
browser that is JavaScript enabled.
Annu Kelley
Hartron Skill Centre12
¢ Minimal Syntax-Easy to Learn: By learning just a few
commands and simple rules of syntax, complete
applications can be built using JavaScript. ; /
Quick Development: JavaScript does not require time-
consuming compilations, scripts can be developed in a
short period of time. ;
Designed for simple, small program: It is well suited to
implement simple, small programs. Such programs can be
easily written and executed at an acceptable speed using
JavaScript. In addition, they can be easily integrated into a
web page.
WRITING JAVASCRIPT INTO HTML -
JavaScript syntax is embedded into an HTML file. A browser
reads HTML files and interprets HTML tags. Since all
JavaScript need to be included as an integral part of an
HTML document when required, the browser needs to be
informed that specific sections of HTML code is JavaScript.
The browser will then use its built-in JavaScript engine to
interpret this code.
The browser is given this information using the HTML tags.
. The marks the
end of the snippet of scripting code.
Annu Kelley
Hartron Skill Centre
:Syntax: