Professional Documents
Culture Documents
CSE-326-21-Java Scripts 1
CSE-326-21-Java Scripts 1
CSE-326-21-Java Scripts 1
Introduction
Change the HTML Content (getElementById( ))
Introduction
Change the HTML Content (getElementById( ))
Introduction
Change HTML attribute values
Introduction
Change HTML attribute values
Introduction
Change HTML attribute values
Introduction
Change HTML Style (CSS)
Introduction
Can control what to show / hide? (display style property)
Where to put JavaScript?
The <script> tag
Where to put JavaScript?
The <script> tag inside <head>
Where to put JavaScript?
The <script> tag inside <head> or <body>
For best readability, programmers often like to avoid code lines longer
than 80 characters.
If a JavaScript statement does not fit on one line, the best place to break it
is after an operator:
Statements in JavaScript
Keywords
JavaScript Syntax
Declaring variable
Number
Without Decimal-point, Integers (upto 15 digits)
With Decimal-point Floating-point (64 bit)
NaN
String
Booleans
Function
Array
Dates
JavaScript Operators
Arithmetic Operators
JavaScript Operators
Assignment Operators
JavaScript String