Table of Contents

 

Copyright

Brief Table of Contents

Table of Contents

Preface

Acknowledgments

About this Book

About the Authors

1. Preparing for training

Chapter 1. Enter the ninja

1.1. The JavaScript libraries we’ll be tapping

1.2. Understanding the JavaScript language

1.3. Cross-browser considerations

1.4. Current best practices

1.4.1. Current best practice: testing

1.4.2. Current best practice: performance analysis

1.5. Summary

Chapter 2. Arming with testing and debugging

2.1. Debugging code

2.1.1. Logging

2.1.2. Breakpoints

2.2. Test generation

2.3. Testing frameworks

2.3.1. QUnit

2.3.2. YUI Test

2.3.3. JsUnit

2.3.4. Newer unit-testing frameworks

2.4. The fundamentals of a test suite

2.4.1. The assertion

2.4.2. Test groups

2.4.3. Asynchronous testing

2.5. Summary

2. Apprentice training

Chapter 3. Functions are fundamental

3.1. What’s with the functional difference?

3.1.1. Why is JavaScript’s functional nature important?

3.1.2. Sorting with a comparator

3.2. Declarations

3.2.1. Scoping and functions

3.3. Invocations

3.3.1. From arguments to function parameters

3.3.2. Invocation as a function

3.3.3. Invocation as a method

3.3.4. Invocation as a constructor