Praise for JavaScript: The Definitive Guide, Seventh Edition
This book is everything you never knew you wanted to know about JavaScript. Take your JavaScript code quality and productivity to the next level. Davids knowledge of the language, its intricacies and gotchas, is astounding, and it shines through in this truly definitive guide to the JavaScript language.
Schalk Neethling, Senior Frontend Engineer at MDN Web Docs
David Flanagan takes readers on a guided tour of JavaScript that will provide them with a feature-complete picture of the language and its ecosystem.
Sarah Wachs, Frontend Developer and Women Who Code Berlin Lead
Any developer interested in being productive in codebases developed throughout JavaScripts lifetime (including the latest and emerging features) will be well served by a deep and reflective journey through this comprehensive and definitive book.
Brian Sletten, President of Bosatsu Consulting
JavaScript: The Definitive Guide, Seventh Edition
by David Flanagan
Copyright 2020 David Flanagan. All rights reserved.
Printed in the United States of America.
Published by OReilly Media, Inc. , 1005 Gravenstein Highway North, Sebastopol, CA 95472.
OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .
- Acquisitions Editor: Jennifer Pollock
- Development Editor: Angela Rufino
- Production Editor: Deborah Baker
- Copyeditor: Holly Bauer Forsyth
- Proofreader: Piper Editorial, LLC
- Indexer: Judith McConville
- Interior Designer: David Futato
- Cover Designer: Karen Montgomery
- Illustrator: Rebecca Demarest
- June 1998: Third Edition
- November 2001: Fourth Edition
- August 2006: Fifth Edition
- May 2011: Sixth Edition
- May 2020: Seventh Edition
Revision History for the Seventh Edition
- 2020-05-13: First Release
See http://oreilly.com/catalog/errata.csp?isbn=9781491952023 for release details.
The OReilly logo is a registered trademark of OReilly Media, Inc. JavaScript: The Definitive Guide, Seventh Edition, the cover image, and related trade dress are trademarks of OReilly Media, Inc.
While the publisher and the authors have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.
978-1-491-95202-3
[LSI]
Dedication
To my parents, Donna and Matt, with love and gratitude.
Preface
This book covers the JavaScript language and the JavaScript APIsimplemented by web browsers and by Node. I wrote it for readers withsome prior programming experience who want to learn JavaScript andalso for programmers who already use JavaScript but want to take theirunderstanding to a new level and really master the language. My goalwith this book is to document the JavaScript language comprehensivelyand definitively and to provide an in-depth introduction to the mostimportant client-side and server-side APIs available to JavaScriptprograms. As a result, this is a long and detailed book. My hope,however, is that it will reward careful study and that the time youspend reading it will be easily recouped in the form of higherprogramming productivity.
Previous editions of this book included a comprehensive referencesection. I no longer feel that it makes sense to include that materialin printed form when it is so quick and easy to find up-to-datereference material online. If you need to look up anything related tocore or client-side JavaScript, I recommend you visit the MDN website. And for server-side Node APIs, I recommend you go directly to the source and consult the Node.js reference documentation.
Conventions Used in This Book
I use the following typographical conventions in this book:
ItalicIs used for emphasis and to indicate the first use of a term.Italic is also used for email addresses, URLs, and file names.
Constant width
Is used in all JavaScript code and CSS and HTML listings, andgenerally for anything that you would type literally when programming.
Constant width italic
Is occasionally used when explaining JavaScript syntax.
Constant width bold
Shows commands or other text that should be typed literally by the user
Note
This element signifies a general note.
Important
This element indicates a warning or caution.
Example Code
Supplemental material (code examples, exercises, etc.) for this book is available for download at:
This book is here to help you get your job done. In general, if example code is offered with this book, you may use it in your programs and documentation. You do not need to contact us for permission unless youre reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing examples from OReilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your products documentation does require permission.
We appreciate, but generally do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: JavaScript: The Definitive Guide, Seventh Edition, by David Flanagan (OReilly). Copyright 2020 David Flanagan, 978-1-491-95202-3.
If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at .
OReilly Online Learning
Note
For more than 40 years, OReilly Media has provided technology and business training, knowledge, and insight to help companies succeed.
Our unique network of experts and innovators share their knowledge and expertise through books, articles, and our online learning platform. OReillys online learning platform gives you on-demand access to live training courses, in-depth learning paths, interactive coding environments, and a vast collection of text and video from OReilly and 200+ other publishers. For more information, visit http://oreilly.com.
How to Contact Us
Please address comments and questions concerning this book to the publisher:
- OReilly Media, Inc.
- 1005 Gravenstein Highway North
- Sebastopol, CA 95472
- 800-998-9938 (in the United States or Canada)
- 707-829-0515 (international or local)
- 707-829-0104 (fax)
We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at