.CLIENT SERVER MODEL
Node is a component or terminal connected to a network. The
components like laptops, PDAs, Internet enabled mobiles etc., can be
considered as node in a computer network.
It is a node computer that establishes connection with the server,
collects data from the user, sends it to the server, receives information
from the server and presents it to the user.
In the context of client-server model, server is the counter part of
client. It is a computer that serves queries from the client. The programs
which respond to the request of clients are known as server
applications. The computer designed to run server application is known
as server machine. Web server, database server and mail server are
some examples of servers.
Comments are the statements that are always ignored by the interpreter.
They are used to give remarks to the statement making it more readable
and understandable to other programmers. There are two types of
– Single line comment using double-slash (//).
– Multiple lines comment using /* and */ .
For example :
// This is a single-line comment.
/* This is a multiple-line comment.
It can be of any length. */
Literals refer to the constant values, which are used directly in
In above statements 10, 5.7, ìWelcomeî are literals.
A variable is an identifier that can store values. These values can be
changed during the execution of script. Once a value is stored in a
variable it can be accessed using the variable name. Variable
declaration is not compulsory, though it is a good practice to use variable
declaration. Keyword var is used to declare a variable.
var var-name [= value] […, var-name [= value] ]