JavaScript is a cross-platform,
object-oriented scripting language. It is a trivial and lightweight verbal.
Inside a host environment (for example, a web browser), JavaScript can be
connected to the objects of its situation to provide programmatic control over them.
JavaScript contains a standard library of objects, such as Array, Date,
and Math, and a core set of language
elements such as operators, regulator structures, and messages. Core JavaScript
can be extended for a variety of purposes by supplementing it with additional
objects; for example: Client-side JavaScript extends the core language
by supplying objects to control a browser and it’s Document Object Model (DOM).
For example, client-side extensions allow an application to place basics on an
HTML form and respond to user measures such as mouse clicks, form input, and
page navigation. Server-side JavaScript extends the core language by
supplying objects relevant to running JavaScript on a server. For example,
server-side extensions allow a claim to communicate with a database, provide
continuity of information from one invocation to another of the application, or
perform file manipulations on a server. JavaScript
and Java are alike in some ways but basically different in some others. The
JavaScript language resembles Java but does not have Java's static typing and
strong type checking. JavaScript follows most Java expression syntax, naming
conventions and basic control-flow concepts which was the reason why it was
renamed from Live Script to JavaScript.
In contrast to Java's compile-time system of classes built by declarations,
JavaScript supports a run time system based on a small number of data kinds expressive
numeric, Boolean, and string values. JavaScript has a prototype-based object perfect
instead of the more common class-based object model. The prototype-based model
provides active inheritance; that is, what is inherited can vary for individual
objects. JavaScript also supports functions without any special declarative
requirements. Functions can be properties of objects, executing as loosely
typed methods. JavaScript is a very free-form language compared to Java. You do
not have to announce all variables, classes, and methods. You do not have to be
concerned with whether methods are public, private, or protected, and you do
not have to implement interfaces. Variables, parameters, and meaning return
types are not explicitly typed
No comments:
Post a Comment