Table of Contents:
Introduction - 8
Section One - 9
The Purpose of This Book - 9
Section Two - 11
Basic Definitions - 11
Section Three - 19
What is Coding? - 19
Five Elements - 19
Entrance - 20
Control/Branching - 20
Variables - 21
Subprograms - 26
Exit - 27
Section Four - 29
Javascript - 29
History - 33
Values - 33
Tips - 34
First Assignment - 35
Section Five - 37
HTML and JavaScript - 37
"Hello, World" in HTML - 38
"Hello, World" in JavaScript - 39
Window.alert() - 40
Document.write() - 41
End of Section Challenge - 41
Section Six - 43
Variables and Strings - 43
Create a String - 43
Concatenating a String - 44
Multiple Variables - 45
Str.fontcolor(""); - 45
End of Section Challenge - 46
Section Seven - 47
Expressions of Statements - 47
End of Section Challenge - 47
Section Eight - 49
Functions - 49
Document.getelementbyid - 49
+=Operator - 50
End of Section Challenge - 51
Section Nine - 53
Numbers - 53
Subtraction - 53
Multiplication - 54
Division - 54
Multiple Arithmetic Operators - 54
Modulus Operation - 54
Unary and Binary Operators - 55
Increment Operator - 56
Math.random() - 56
End of Section Challenge - 57
Section Ten - 59
JavaScript Objects - 61
Operators as Words - 61
Type of Operator - 61
End of Section Challenge 2 - 62
Section Eleven - 63
Floating Point - 63
Other Numbers - 63
End of Section Challenge - 70
Section Thirteen - 71
Comparison Operators -71
End of Section Challenge - 73
Section Fourteen - 75
Logical Operators - 75
Section Fifteen - 77
Ternary Operators - 77
End of Section Challenge - 78
Section Sixteen - 79
Object-Orientated Programming - 79
Keywords - 81
Reserved Words - 82
End of Section Challenge - 82
Section Seventeen - 83
Identifiers & Literals - 83
Nested Functions - 83
Scope - 84
End of Section Challenge - 86
Section Eighteen - 87
Conditional Statements - 87
Else Statement - 88
Else If Statements - 88
End of Section Challenge - 89
Section Nineteen - 91
String Methods - 91
Concat() Method - 91
Concat() Method - 92
End of Section Challenge - 92
Section Twenty - 93
Number Methods - 93
Toprecision() Method - 93
End of Section Challenge - 94
Section Twenty- One - 95
Final lChallenge - 95
CONGRATUALTIONS - 98
Index - 99