Uploaded on Jun 2, 2021
PPT on A Brief Guide on JavaScript Programming Language.
A Brief Guide on JavaScript Programming Language.
A Brief Guide on JavaScript
Programming Language
2
What is JavaScript ?
• JavaScript is a dynamic computer
programming language.
• It is lightweight and most used as a part
of web pages, whose implementations
allow client-side script to interact with
the user and make dynamic pages.
• It is an interpreted programming
language with object-oriented
capabilities.
Source: www.tutorialspoint.com
3
Specifications
1. JavaScript is a lightweight, interpreted
programming language.
2. Designed for creating network-centric
applications.
3. Complementary to and integrated with
Java.
4. Complementary to and integrated with
HTML.
5. Open and cross-platform
Source: www.tutorialspoint.com
4
Client-Side JavaScript
• Client-side JavaScript is the most
common form of the language. The
script should be included in or
referenced by an HTML document for
the code to be interpreted by the
browser.
Source: www.tutorialspoint.com
5
Advantages of JavaScript
• Less server interaction − You can
validate user input before sending the
page off to the server. This saves server
traffic, which means less load on your
server.
• Immediate feedback to the visitors
− They don't have to wait for a page
reload to see if they have forgotten to
enter something.
Source: www.tutorialspoint.com
6
Advantages of JavaScript Cont.
• Increased interactivity − You can
create interfaces that react when the
user hovers over them with a mouse or
activates them via the keyboard.
• Richer interfaces − You can use
JavaScript to include such items as drag-
and-drop components and sliders to give
a Rich Interface to your site visitors.
Source: www.tutorialspoint.com
7
Limitations of JavaScript
1. Client-side JavaScript does not allow the
reading or writing of files. This has been
kept for security reason.
2. JavaScript cannot be used for
networking applications because there is
no such support available.
Source: www.tutorialspoint.com
8
JavaScript Development Tools
1. Microsoft FrontPage − Microsoft has
developed a popular HTML editor called
FrontPage.
2. Macromedia Dreamweaver MX −
Macromedia Dreamweaver MX is a very
popular HTML and JavaScript editor in
the professional web development
crowd.
3. Macromedia HomeSite 5 − HomeSite 5
is a well-liked HTML and JavaScript
editor from Macromedia that can be
used to manage personal websites
effectively.
Source: www.tutorialspoint.com
9
Important attributes
1. Language − This attribute specifies
what scripting language you are using.
Typically, its value will be javascript.
2. Type − This attribute is what is now
recommended to indicate the scripting
language in use and its value should be
set to "text/javascript".
Source: www.tutorialspoint.com
10
How Does JavaScript Work?
1. JavaScript is either embedded into a
web page or else it’s included in a .js
file. JavaScript is also a “client-side”
language, which is a fancy way of saying
that it gets downloaded to site visitors’
computers, then processed.
Source: skillcrush.com
11
How do you add JavaScript to a
website?
CSS:
CSS goes here
JavaScript:
JavaScript code goes here
Source: skillcrush.com
Comments