About the Technical Reviewers
Chapter 1: Object-Oriented JavaScript
Detecting An Object�s Constructor
Assigning Properties And Methods Using Prototype
Assigning Properties And Methods Using Scope
Context and the this keyword
The JavaScript Function�s apply and call Methods
Public, Private, and Protected Access To Properties And MethodsSimplifying Inheritance
Coding Conventions And Naming
Rule 1: Use descriptive names
Rule 2: Begin with a lowercase letter
Rule 3: Use camel-case to represent word divisions
Rule 4: Use all uppercase characters to represent universal constants
Rule 5: Group together variable declarations in one statement at the top of every function block
Variable and Function Name Hoisting
Chapter 2: Documenting JavaScript
Inline and Block Comments
Structured JavaScript Documentation
The YUIDoc Documentation Format
Documenting “Classes�, Constructors, Properties and Methods
Specifying Inputs Parameters and Return Values of Methods
Documenting Optional Method Input Parameters
Documenting a Property Containing a Constant Value
Documenting Private, Protected and Public Methods and Properties
Documenting Inherited “Classes�
Documenting Chained Methods
Documenting Groups of Related “Classes�Documenting Events
Documenting Code Examples
Other YUIDoc Documentation Tags
Expressive Documentation Formatting � Markdown
Grouping Content Under Headings
Breaking Lines And Creating Paragraphs
Creating Horizontal Rules
Using Backslash To Insert Reserved Characters
For Everything Else, There�s HTML
Creating a Documentation Website Using YUIDoc
SummaryChapter 3: Writing High-Quality JavaScript
Performing Static Code Analysis
Google Closure Compiler and Linter
Choosing a Static Code Analysis Tool
Unit Testing In JavaScript
Unit Testing Frameworks For JavaScript
Using Jasmine For JavaScript Unit Testing
Additional Features Of Jasmine
JavaScript�s Native Error Types
Wrap Code That May Error In A try-catch Statement
Detecting The Type Of Error Thrown
Creating Custom Error Types