Javascript
Javascript
Tr.G.kanagavel
B.Sc.,B.Ed.,M.C.A.,M.Phil.,C.I.G.,
SBOA Schools, Madurai-
625019
Why Study JavaScript?
JavaScript is one of the 3 languages all web
developers must learn:
1. HTML to define the content of web pages
2. CSS to specify the layout of web pages
3. JavaScript to program the behavior of web
pages
The Original JavaScript ES1 ES2 ES3 (1997-1999)
The First Main Revision ES5 (2009)
The Second Revision ES6 (2015)
All Yearly Additions (2016, 2017, 2018, 2019,
2020)
Introduction:
04.12.1995 – Netscape and Sun Inc. jointly
page.
Recommended to kept within the <head>
tags.
Script Commands – Script tag alerts the
<script language=“javascript”
type=“text/javascript”>
JavaScript Code
<script>
Save (filename.html)
Case-Sensitive Language
Example:
var n;
keyword variable name (identifier)
var x = 5;
var y = 6;
Basic Data types:
Data type – kind of data variable holds.
sure does";
var numericData = 3.14;
General Syntax:
document.write ("string " + var);