Buy new:
-51% $34.30$34.30
Ships from: Amazon.com Sold by: Amazon.com
Save with Used - Acceptable
$29.71$29.71
Ships from: Amazon Sold by: Kalelbooks

Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
JavaScript: The Definitive Guide: Master the World's Most-Used Programming Language 7th Edition
Purchase options and add-ons
JavaScript is the programming language of the web and is used by more software developers today than any other programming language. For nearly 25 years this best seller has been the go-to guide for JavaScript programmers. The seventh edition is fully updated to cover the 2020 version of JavaScript, and new chapters cover classes, modules, iterators, generators, Promises, async/await, and metaprogramming. You’ll find illuminating and engaging example code throughout.
This book is for programmers who want to learn JavaScript and for web developers who want to take their understanding and mastery to the next level. It begins by explaining the JavaScript language itself, in detail, from the bottom up. It then builds on that foundation to cover the web platform and Node.js.
Topics include:
- Types, values, variables, expressions, operators, statements, objects, and arrays
- Functions, classes, modules, iterators, generators, Promises, and async/await
- JavaScript’s standard library: data structures, regular expressions, JSON, i18n, etc.
- The web platform: documents, components, graphics, networking, storage, and threads
- Node.js: buffers, files, streams, threads, child processes, web clients, and web servers
- Tools and language extensions that professional JavaScript developers rely on
- ISBN-101491952024
- ISBN-13978-1491952023
- Edition7th
- PublisherO'Reilly Media
- Publication dateJune 2, 2020
- LanguageEnglish
- Dimensions7 x 1.41 x 9.19 inches
- Print length706 pages
Frequently bought together

More items to explore
- Any JavaScript value that is not a number, a string, a boolean, a symbol, null, or undefined is an object.Highlighted by 473 Kindle readers
- The special JavaScript values null and undefined are primitive values, but they are not numbers, strings, or booleans.Highlighted by 346 Kindle readers
- JavaScript’s object types are mutable and its primitive types are immutable.Highlighted by 134 Kindle readers
From the brand

-
Explore JavaScript resources
-
Explore TypeScript
-
More from O'Reilly
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
From the Publisher

About This Book
JavaScript is the programming language of the web. The overwhelming majority of websites use JavaScript, and all modern web browsers—on desktops, tablets, and phones—include JavaScript interpreters, making JavaScript the most-deployed programming language in history. Over the last decade, Node.js has enabled JavaScript programming outside of web browsers, and the dramatic success of Node means that JavaScript is now also the most-used programming language among software developers. Whether you’re starting from scratch or are already using JavaScript professionally, this book will help you master the language.
If you are already familiar with other programming languages, it may help you to know that JavaScript is a high-level, dynamic, interpreted programming language that is well-suited to object-oriented and functional programming styles. JavaScript’s variables are untyped. Its syntax is loosely based on Java, but the languages are otherwise unrelated.
JavaScript derives its first-class functions from Scheme and its prototype-based inheritance from the little-known language Self. But you do not need to know any of those languages, or be familiar with those terms, to use this book and learn JavaScript.
This book covers the JavaScript language and the JavaScript APIs implemented by web browsers and by Node. I wrote it for readers with some prior programming experience who want to learn JavaScript and also for programmers who already use JavaScript but want to take their understanding to a new level and really master the language. My goal with this book is to document the JavaScript language comprehensively and definitively and to provide an in-depth introduction to the most important client-side and server-side APIs available to JavaScript programs. As a result, this is a long and detailed book. My hope, however, is that it will reward careful study and that the time you spend reading it will be easily recouped in the form of higher programming productivity.
Editorial Reviews
About the Author
David Flanagan is a computer programmer who spends most of his time writing about JavaScript and Java. His books with O'Reilly include Java in a Nutshell, Java Examples in a Nutshell, Java Foundation Classes in a Nutshell, JavaScript: The Definitive Guide, and JavaScript Pocket Reference. David has a degree in computer science and engineering from the Massachusetts Institute of Technology. He lives with his wife and children in the U.S. Pacific Northwest bewteen the cities of Seattle, Washington and Vancouver, British Columbia.
Product details
- Publisher : O'Reilly Media
- Publication date : June 2, 2020
- Edition : 7th
- Language : English
- Print length : 706 pages
- ISBN-10 : 1491952024
- ISBN-13 : 978-1491952023
- Item Weight : 2.44 pounds
- Dimensions : 7 x 1.41 x 9.19 inches
- Best Sellers Rank: #44,939 in Books (See Top 100 in Books)
- #1 in JavaScript Programming (Books)
- #8 in Object-Oriented Design
- #14 in Computer Programming Languages
- Customer Reviews:
About the author

David Flanagan is a computer programmer who has spent much of the last 20 years writing books about programming languages. He now works at Mozilla. David lives with his wife and children in the Pacific Northwest, between the cities of Seattle and Vancouver.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonCustomers say
Customers praise the book's writing style, describing it as an absolute masterpiece in technical writing that is extremely clear with explanations and very readable. They appreciate the detailed content, with one customer noting that no detail is left out.
AI Generated from the text of customer reviews
Select to learn more
Customers praise the writing style of the book, describing it as an absolute masterpiece in technical writing that is concise, readable, and easy to understand.
"...are incredibly useful nuggets of information that explain complicated topics in a paragraph. I will be re-reading this book in about a year...." Read more
"...And, he has added a good "summary" section to each chapter. Overall, I think the book has been "refactored" in a good way...." Read more
"...It's writing style is engaging enough. However, the immaculate organization and presentation of the chapters makes this book really shine as a..." Read more
"...I read them both in a week but this one was much harder to understand once the code got a bit more complicated...." Read more
Customers appreciate the book's detailed content, with one customer noting that it covers all aspects of JavaScript programming.
"Very wordy but probably covers all there is to know. Better as a reference tome than a tutorial...." Read more
"This is a fantastically written book about Javascript with no detail left out...." Read more
"Well organized. In good details." Read more
Reviews with images

Very readable. Good print quality.
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on April 26, 2025Format: PaperbackVerified PurchaseI've read hundreds of computer books as a hobbyist and self-learner. This is by far the most concise and well written I've ever read. I'm beginning my JavaScript journey in order to learn Typescript in order to learn Deno and I had to get a handle on the various levels of JavaScript 'archaeology' so I can make sense of the massive ecosystem of tools and documentation. JavaScript has undergone massive changes and growth in its lifetime and it's hard to know what's useful and what's outdated leftovers as you peruse the net looking for resources. Just get this book - it's incredibly well crafted, the writing style stays consistent from start to finish (a lot of books turn to utter crap at about two thirds) and there are incredibly useful nuggets of information that explain complicated topics in a paragraph. I will be re-reading this book in about a year. I look forward to it immensely because the author has created an absolute masterpiece in technical writing. Hat's off, Flanagan!
- Reviewed in the United States on July 16, 2020Format: PaperbackVerified PurchaseOh, wow, another edition of this classic book. Is it worth "upgrading" that old copy on your bookshelf?
First, if you have any edition prior to the 6th edition the answer is a definitive, "Yes!" There is no question that so much has changed since 2006 which is when the 5th edition was published. JavaScript feels like a whole new language since then (not really, but significant changes in the last 14 years have happened).
But, what if you have the 6th edition? What did David Flanagan change? Overall, the 7th edition comes in at 40% smaller than the 6th edition. Do you keep both? Nope. The 7th edition is much better thought through and eliminates much of the old and adds in important new things.
Seven chapters on "client-side" JavaScript are condensed into one "JavaScript in Web Browsers" chapter. The topics within that chapter are a much tighter presentation of the material you need to know. If you really need to know more about JavaScript and CSS or JQuery, go look to references on these topics. Flanagan was right to trim that fat from this book.
In the 6th edition, there were barely 20 pages focused on server-side JavaScript. Now there is a good chapter dedicated to "Server-Side JavaScript with Node". Finally, he has added a whole new chapter on tools and extensions. In other words, Flanagan has caught up with how JavaScript is really used.
The remaining changes are around the fundamentals. He has added information on symbols and has greatly reworked chapters on object and classes as one would expect. Modules have been split out into their own chapter. And, he has added a good "summary" section to each chapter.
Overall, I think the book has been "refactored" in a good way. It is much tighter. And, certainly more relevant to modern JavaScript programming. Of course, JavaScript will continue to evolve so I expect future editions will continue. But, this edition feels like a checkpoint one should mark. I have done so and my 6th edition is being duly donated.
- Reviewed in the United States on December 26, 2022Format: PaperbackVerified PurchaseOK I usually give tech books about a 2-3 rating. This one surprised me not only of its girth, but hey the author (or editor) actually introduced topics in a logical, progressive manner - building on base knowledge as book progressed, with chapters in meaningful topic order of complexity. Most books the authors can't make up their mind if they're writing a dictionary or maybe someone different wrote each chapter, and they put it together all jumbled up on a disorganized mess with advanced topics the first. This book acgtually is one I can learn from and explains examples welll, thoroughly. A lot of books shove a code excerpt in and pick out one line to discuss in the meantime you're confused out of context why all the other lines were even provided they just got lazy with providing different properly detailed, focused examples. This book far better than that. Rare 5 star rating.
- Reviewed in the United States on October 29, 2024Format: PaperbackVerified PurchaseThe book covers a lot of topics. Make sure to read his explanation on how the examples are laid out in the book. This is probably a good book to get after 6+ months of coding unless you have experience coding in other languages. I would say it's geared more towards intermediate, advanced, and expert level JavaScript. A lot of the examples are math heavy, so they may leave you scratching your head if you haven't taken a math class in a bit which will overcomplicate things for you if you are a beginner. If you are new and looking for a book to read, I highly recommend "Absolute Beginner's Guide to Javascript by Kirupa Chinnathambi". I purchased the third edition of that book along with this book when I was first getting started. I read them both in a week but this one was much harder to understand once the code got a bit more complicated.
Overall it's a great book, just not for a coder starting out.
- Reviewed in the United States on December 7, 2024Format: PaperbackVerified PurchaseOld version did not have some functions
Top reviews from other countries
-
ArnteReviewed in Sweden on August 30, 2024
5.0 out of 5 stars Bok
Format: PaperbackVerified PurchaseSnabb leverans.
-
JoãoReviewed in Brazil on October 28, 2022
5.0 out of 5 stars Quem programa com JS/TS deve ter um desses na prateleira.
Format: PaperbackVerified PurchaseUm livro completo, um panorama sobre JavaScript que só melhora com o passar dos anos, vale o preço(salgado)!
Se você é iniciante, não recomendo o livro, ele pode apresentar linguagem, conceitos e tópicos complexos para quem está iniciando na área.
-
Amazon カスタマーReviewed in Japan on December 20, 2024
5.0 out of 5 stars 面白い。
Format: PaperbackVerified Purchase2回読み通しました。読んでると勝手に頭の中が整理されていく感じがしました。それにしても英文による論理ってのはスゴイですね。
- Amazon CustomerReviewed in Belgium on June 22, 2024
5.0 out of 5 stars Chat gpt needed for deciphering lingo
Format: PaperbackVerified PurchaseI wouldn,t understand a word of this without chat gpt explaining everything. I couldnt put the sentences into context without chat gpt. I didnt know: phrases like: statement,expression,literal,runtime ect...But it makes me happy that when i open this it doesnt use 'var' everywhere but let. Also its thinner than previous version.
-
PatReviewed in France on June 15, 2022
5.0 out of 5 stars Excellent
Format: PaperbackVerified PurchaseExcellent livre sur le JavaScript. Plutôt livre de référence que pédagogique. A lire quand on a déjà quelques bases. J’ai eu un souci avec le livre (pages qui se détachent). J’ai contacté O’Reilly qui me l’a changé immédiatement. Excellent service client. J’ai aussi le livre Fluent Python du même éditeur qui est lui aussi très bien écrit et un ouvrage de référence.