0% found this document useful (0 votes)
5 views1 page

Java Script

Uploaded by

devagnaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Java Script

Uploaded by

devagnaj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

JavaScript – Basics

●​ JavaScript was designed to add interactivity to HTML pages.


●​ JavaScript is a scripting language (The Language written for run time)
●​ A Scripting language is a lightweight programming language (Small Amount of
Memory usage, Simple Syntax and Semantics, Easy to implement(porting))
●​ JavaScript is usually embedded directly into HTML Pages
●​ JavaScript is an interpreted language (Not compiled but directly interpreted)
●​ Everyone can use JavaScript without purchasing a license

JavaScript – Advantages

1.​ Makes you Programmer: JavaScript gives HTML designers a programming tool
2.​ Interactivity: JavaScript can put dynamic text into an HTML page.so that user can
interact with webpage
3.​ Validation: JavaScript can be used to validate data (You can validate user input
before sending the page off to the server. This saves server traffic, which means less
load on your server.)

4.​ Create cookies: JavaScript can be used to create cookies. Cookies are data, stored in
small text files, on your computer. Cookies were invented to solve the problem "how
to remember information about the user":

When a user visits a web page, his/her name can be stored in a cookie.

Next time the user visits the page, the cookie "remembers" his/her name.

5.​ Simplicity. Since JavaScript uses simple syntax and semantics, it is easy to learn and
implement
6.​ Interoperability: JavaScript can be inserted into any web page. JavaScript can be
used in many different kinds of applications because of support in other languages
like Pearl and PHP.
7.​ Rich interfaces - JavaScript can be used to create features like drag and drop and
components such as sliders, all of which greatly enhance the user interface and
experience of a site.
8.​ Speed - JavaScript tends to be very fast because it is often run immediately within the
client's browser.

You might also like