更新时间:2021-07-16 09:31:44
封面
版权页
Credits
About the Author
About the Reviewer
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. JavaScript Primer
A little bit of history
How to use this book
Hello World
Summary
Chapter 2. Functions Closures and Modules
A function literal
Functions as data
Scoping
Function declarations versus function expressions
The arguments parameter
Anonymous functions
Closures
Timers and callbacks
Private variables
Loops and closures
Modules
Chapter 3. Data Structures and Manipulation
Regular expressions
Exact match
Match from a class of characters
Repeated occurrences
Beginning and end
Backreferences
Greedy and lazy quantifiers
Arrays
Maps
Sets
A matter of style
Chapter 4. Object-Oriented JavaScript
Understanding objects
Instance properties versus prototype properties
Inheritance
Getters and setters
Chapter 5. JavaScript Patterns
Design patterns
The namespace pattern
The module pattern
The factory pattern
The mixin pattern
The decorator pattern
The observer pattern
JavaScript Model-View-* patterns
The Model-View-Presenter pattern
Model-View-ViewModel
Chapter 6. Testing and Debugging
Unit testing
JavaScript debugging
Chapter 7. ECMAScript 6
Shims or polyfills
Transpilers
ES6 syntax changes
Chapter 8. DOM Manipulation and Events
DOM
Chaining
Traversal and manipulation
Working with browser events
Propagation
jQuery event handling and propagation
Event delegation
The event object
Chapter 9. Server-Side JavaScript
An asynchronous evented-model in a browser
Callbacks
Timers
EventEmitters
npm
JavaScript performance
Index