مشخصات کتاب
-
stoyan stefanov
-
2008
-
انگلیسی
-
31037
-
863
-
0
Object-Oriented JavaScript
دوره آموزش Javascript
A Bit of History 10
The Winds of Change 11
The Present 11
The Future 12
Object-Oriented Programming 12
Objects 13
Classes 13
Encapsulation 14
Aggregation 15
Inheritance 15
Polymorphism 16
OOP Summary 16
Setting up Your Training Environment 17
Getting the Tools You Need 17
Using the Firebug Console 18
Summary 20
Chapter 2: Primitive Data Types, Arrays, Loops,
and Conditions 21
Variables 21
Variables are Case Sensitive 22
Operators 23
Primitive Data Types 26
Finding out the Value Type —the typeof Operator 27
Numbers 27
Octal and Hexadecimal Numbers 28
Exponent Literals 29
Infinity 30
NaN 31
Strings 32
String Conversions 33
Special Strings 34
Booleans 35
Logical Operators 36
Operator Precedence 38
Lazy Evaluation 39
Comparison 40
Undefined and null 41
Primitive Data Types Recap 43
Arrays 44
Adding/Updating Array Elements 45
Deleting Elements 46
Arrays of arrays 46
Conditions and Loops 48
Code Blocks 48
if Conditions 49
Checking if a Variable Exists 50
Alternative if Syntax 52
Switch 52
Loops 54
While Loops 54
Do-while loops 55
For Loops 55
For-in Loops 58
Comments 59
Summary 59
Exercises 60
Chapter 3: Functions 61
What is a Function? 62
Calling a Function 62
Parameters 62
Pre-defined Functions 64
parseInt() 65
parseFloat() 66
isNaN() 67
isFinite() 68
Encode/Decode URIs 68
eval() 69
A Bonus—the alert() Function 69
Scope of Variables 70
ActionScript 3.0 Design Patterns
نویسنده: William B. Sanders and Chandima Cumaranatunge
زبان: انگلیسی