JavaScript
An introduction to the language. This talk follows:
David Flanagan,
JavaScript
, 5th edition, 2006. Chapters 1–12.
Examples are
taken
from that book.
1
Introduction
1.1
Example
1.2
Another Example
2
Lexical Structure
3
Datatypes and Values
3.1
Numbers
3.1.1
Special Numbers
3.2
Strings
3.2.1
Working with Strings
3.3
Booleans
3.4
Functions
3.5
Objects
3.6
Arrays
3.7
Date
3.8
Regular Expressions
3.9
Wrapper Objects
3.10
Value vs Reference
4
Variables
4.1
Scope
4.1.1
var Location Does Not Matter
4.2
Variables as Properties
5
Expressions and Operators
5.1
Relational Operators
5.2
String Operators
5.3
delete Operator
6
If Statements
6.1
Switch
6.2
While
6.3
For
6.4
Labels and Break
6.5
Throw and Catch
7
Objects and Arrays
7.1
Object Properties
7.2
Objects as Associative Arrays
7.3
Universal Properties and Methods
7.4
Arrays
7.4.1
Array Length
7.4.2
Array Methods
8
Functions
8.1
Arguments to Functions
8.2
Functions as Data
8.3
Functions as Methods
8.4
Function Properties
8.4.1
Defining new Function Properties
8.4.2
apply and call
8.4.3
Utility Function Examples
8.5
Scoping
8.5.1
Call Object as Namespace
8.5.2
Closures
8.5.3
Sharing Closure Variables Among Functions
8.5.4
Breakpoints using Closures
8.5.5
Function Constructor
9
Object-Oriented JavaScript
9.1
Prototype
9.1.1
Inheritance Example
9.1.2
Inheritance via Constructor Chaining
9.1.3
Extend a Type
9.1.4
Calling Overridden Methods
9.1.5
Mixins
9.1.6
Complex Numbers Example
9.1.7
Private Members
9.2
Common Methods: toString
9.3
instanceof
10
Modules and Namespaces
11
Regular Expressions
Entire Presentation with Notes
Copyright © 2008
José M. Vidal
.
All rights reserved.
06 March 2008, 02:45PM