Seminar Topics & Project Ideas On Computer Science Electronics Electrical Mechanical Engineering Civil MBA Medicine Nursing Science Physics Mathematics Chemistry ppt pdf doc presentation downloads and Abstract

Full Version: Javascript Interview Questions and Answers ­ Freshers & Experienced
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[attachment=74708]



What are the different actions that
are performed using JavaScript?
­ JavaScript allows the computer to be more secure
by putting the privacy policies and disable the
unauthorized access to the files.
­ It allows many actions to be performed like, setting
the browser's preferences and receiving the request
from the servers for the client computer.
­ The settings that are used gets saved on the client
side on the features like actions buttons,
appearance and printing.
­ It allows easy launching of an application on the
client computer with interactive data to be
communicated between the server and the client.
­ It allows reading and writing of files or directories
on the client or server side.
­ It allows easy capturing of the data that is live
streamed from the server to the client machine for
retransmission.
­ It also allows to safe and secure the application
from the outside world.
How can JavaScript language be
separated from objects?
JavaScript treats and creates the applications for
the scripting to make the browser's compatible for
objects. The language is used to create objects that
are connected to page elements and other elements
in a language. The separation allows the concept of
development and effort to be shared with each
factor. The JavaScript language allows dynamic
data to be presented using the weakly typed
language. It also support any action to be taken to
support user interface and graphics.
What is the use of DOM?
DOM is also known as Document Object Model
which is used to develop a model with documents or
web pages containing objects like elements, links,
etc. These objects can be manipulated or certain
actions like add, delete or change of an element can
be performed using this document object model.
Through this change in attributes can be done to get
all the list of all the elements in the document. The
DOM model responds to API calls that result in
documented level of DOM recommendation. It is
used to support additional behavior on the web page
and use of API give an extensible advantage over
other models existing. DOM codes are reused to
meet the requirement of the real world and to make
all the program interoperable.
What is the importance of
<SCRIPT> tag?
­ JavaScript is used inside <SCRIPT> tag in HTML
document. The tags that are provided the necessary
information like alert to the browser for the program
to begin interpreting all the text between the tags.
­ The <script> tag uses JavaScript interpreter to
handle the libraries that are written or the code of the
program.



Why JavaScript is called as Script
for all browsers?
JavaScript is written after <SCRIPT> tag and it is
surrounded in between the <!­­ your code ­­> tags,
this is also known as comment tag. JavaScript
interpreter treats the tag such that it treats all the
lines in the comments as script lines. The
JavaScript comment starts with // inside the
<SCRIPT> tag. The script is contained inside
<HTML> tag that contains a comment tag. The
browser that is non­compatible with JavaScripts
ignore the lines and move on, but compatible
browsers always treats it as a script and execute it.
The browser treat the written lines between the
comment tag as normal lines and just thinking of the
comment ignores it. Some browsers just treat the <!­
­ comment­­> as a comment only and ignores
whatever is written inside it.