Enjoy fast, free delivery, exclusive deals, and award-winning movies & TV shows with Prime
Try Prime
and start saving today with fast, free delivery
Amazon Prime includes:
Fast, FREE Delivery is available to Prime members. To join, select "Try Amazon Prime and start saving today with Fast, FREE Delivery" below the Add to Cart button.
Amazon Prime members enjoy:- Cardmembers earn 5% Back at Amazon.com with a Prime Credit Card.
- Unlimited Free Two-Day Delivery
- Streaming of thousands of movies and TV shows with limited ads on Prime Video.
- A Kindle book to borrow for free each month - with no due dates
- Listen to over 2 million songs and hundreds of playlists
- Unlimited photo storage with anywhere access
Important: Your credit card will NOT be charged when you start your free trial or if you cancel during the trial period. If you're happy with Amazon Prime, do nothing. At the end of the free trial, your membership will automatically upgrade to a monthly membership.
Buy new:
$44.99$44.99
FREE delivery:
Thursday, Feb 15
Ships from: Amazon.com Sold by: Amazon.com
Buy used: $21.09
Other Sellers on Amazon
100% positive over last 12 months
100% positive over last 12 months
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.
Secrets of the JavaScript Ninja 2nd Edition
Purchase options and add-ons
More than ever, the web is a universal platform for all types of applications, and JavaScript is the language of the web. If you're serious about web development, it's not enough to be a decent JavaScript coder. You need to be ninja-stealthy, efficient, and ready for anything. This book shows you how.
Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
About the Technology
JavaScript is rapidly becoming a universal language for every type of application, whether on the web, on the desktop, in the cloud, or on mobile devices. When you become a JavaScript pro, you have a powerful skill set that’s usable across all these domains.
About the Book
Secrets of the JavaScript Ninja, Second Edition uses practical examples to clearly illustrate each core concept and technique. This completely revised edition shows you how to master key JavaScript concepts such as functions, closures, objects, prototypes, and promises. It covers APIs such as the DOM, events, and timers. You’ll discover best practice techniques such as testing, and cross-browser development, all taught from the perspective of skilled JavaScript practitioners.
What’s Inside
- Writing more effective code with functions, objects, and closures
- Learning to avoid JavaScript application pitfalls
- Using regular expressions to write succinct text-processing code
- Managing asynchronous code with promises
- Fully revised to cover concepts from ES6 and ES7
About the Reader
You don’t have to be a ninja to read this book—just be willing to become one. Are you ready?
About the Authors
John Resig is an acknowledged JavaScript authority and the creator of the jQuery library. Bear Bibeault is a web developer and author of the first edition, as well as coauthor of Ajax in Practice, Prototype and Scriptaculous in Action, and jQuery in Action from Manning. Josip Maras is a post-doctoral researcher and teacher.
Table of Contents
PART 1 - WARMING UP
- JavaScript is everywhere
- Building the page at runtime
PART 2 - UNDERSTANDING FUNCTIONS
- First-class functions for the novice: definitions and arguments
- Functions for the journeyman: understanding function invocation
- Functions for the master: closures and scopes
- Functions for the future: generators and promises
PART 3 - DIGGING INTO OBJECTS AND FORTIFYING YOUR CODE
- Object orientation with prototypes
- Controlling access to objects
- Dealing with collections
- Wrangling regular expressions
- Code modularization techniques
PART 4 - BROWSER RECONNAISSANCE
- Working the DOM
- Surviving events
- Developing cross-browser strategies
About the Author
Bear Bibeault is a web developer and coauthor of Ajax in Practice, Prototype and Scriptaculous in Action, and jQuery in Action from Manning Publications.
Josip Maras is a post-doctoral researcher and teacher whose thesis on automating reuse in web application development included implementing a JavaScript interpreter in JavaScript.
- ISBN-101617292850
- ISBN-13978-1617292859
- Edition2nd
- PublisherManning
- Publication dateSeptember 10, 2016
- LanguageEnglish
- Dimensions7.38 x 1 x 9.25 inches
- Print length464 pages
Frequently bought together

Similar items that may ship from close to you
From the Publisher
|
|
|
|
|---|---|---|---|
| Get Programming with JavaScript | Secrets of the JavaScript Ninja 2nd Ed. | Functional Programming in JavaScript | |
| Subtitle: | N/A | N/A | How to improve your JavaScript programs using functional techniques |
| User Experience Level: | Beginner | Intermediate | Advanced |
| For Readers who want to: | Learn how to program without any previous experience, using JavaScript as a first language | Master key JavaScript concepts such as functions, closures, objects, prototypes, and promises and learn best practice techniques such as testing and cross-browser development | Learn through concrete examples and jargon-free explanations how to apply functional programming to real-life development tasks |
| Tools covered: | ES6 (ECMAScript 2015) and ES7 (ECMAScipt 2016) |
Product details
- Publisher : Manning; 2nd edition (September 10, 2016)
- Language : English
- Paperback : 464 pages
- ISBN-10 : 1617292850
- ISBN-13 : 978-1617292859
- Item Weight : 1.75 pounds
- Dimensions : 7.38 x 1 x 9.25 inches
- Best Sellers Rank: #758,721 in Books (See Top 100 in Books)
- #168 in JavaScript Programming (Books)
- #234 in Web Services
- #343 in Object-Oriented Design
- Customer Reviews:
Important information
To report an issue with this product or seller, click here.
About the author

Bear Bibeault has been writing software for over four decades, starting with a Tic-Tac-Toe program written on a Control Data Cyber supercomputer via a 100-baud teletype. Because he has two degrees in Electrical Engineering, Bear should be probably designing antennas or something like that, but since his first job with Digital Equipment Corporation, he has always been much more fascinated with programming.
Bear has also served stints with companies such as Dragon Systems, Works.com, Logitech, and even served in the U. S. Military teaching infantry soldiers how to blow things up; the latter teaching him skills crucial for working in Agile software teams.
In addition to his day job, Bear also writes books (who knew?), runs a small business that creates web applications and offers other media services (but not wedding videography, never wedding videography), and helps to moderate CodeRanch.com as a "marshal" (senior moderator).
When not planted in front of a computer, Bear likes to cook big food (which accounts for his jeans size), dabble in photography and video editing, ride his Yamaha V-Star, and wear tropical print shirts.
He works and resides near Austin, TX.
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 Amazon-
Top reviews
Top reviews from the United States
There was a problem filtering reviews right now. Please try again later.
But, if you've been writing Javascript for a couple of years, you're probably ready. I can't tell you how many times I've been stumped by events, promises, classes, ES6, and other topics that I've been able to solve once reading this book. It sometimes gets into the nitty-gritty of why something is happening the way it does, and explains the quirks of Javascript in a relatively clear manner.
Despite this book being written in 2016, it's still very relevant in today's Javascript environment. The authors were tackling information that was cutting-edge and sometimes not even present in browsers back then, so it hasn't aged as badly as other programming books.
I actually own the first edition of this book, and decided to get this edition as well. There is of course some duplication between the two versions. but there is also a huge amount of new material in this edition. It is well worth getting the 2nd edition even if you already own the 1st edition.
The book series You Don't Know JS: Scope & Closures , You Don't Know JS: this & Object Prototypes , and the other 4 volumes are also excellent intermediate level books (one of them is a beginner book), but they are a little more technical and not quite as easy to understand as this book. I don't believe there are any advanced level books. You get to the intermediate level, and then you program for about 10,000 hours to get to the advanced/expert level. On the other hand, Eloquent JavaScript, 2nd Ed.: A Modern Introduction to Programming is a pretty good book that will take you from beginner up to the intermediate level. Lastly, JavaScript: The Definitive Guide: Activate Your Web Pages (Definitive Guides) has long been the JS bible for years, but it is now getting a little dated. When a new version ever gets released, I'd buy it immediately. JavaScript: The Good Parts also gets a lot of recommendations, but it too is getting a little dated.
It isn't a book for absolute beginners & instructions for set-up in the book were non-existent. In order to get the assert function working, clone the book repo add this to your html file in the head (be mindful of the actual directory path):
`
<script src="../Ninja2eCode/assert.js"></script>
<link rel="stylesheet" type="text/css" href="../Ninja2eCode/assert.css">
`
The biggest issue I have with the book is that, there are way too many errors that can throw off people who are not coming from a programming background.
For example, Chapter 9 exercise number 3:
What are the contents of the array,
const samurai = [];
samurai.push("Oda");
samurai.unshift("Tomoe");
samurai.splice(1,0, "Hattori, "Takeda");
samurai.pop();
The answer is naturally just ["Hattori, "Takeda"], however when looking at the answer at the back, it still includes "Tomoe" and completely disregards the last .pop().
Most of these errors are small mistakes, however I can see how it can throw off people who are just beginners trying to get a firm grasp on programming in general.
Aside from that, this is a great book and has some really cool examples of how to solve issues that you normally would not find in traditional languages like C++, Java etc.
This book is probably not a good first introduction to the language, but it is an excellent way to complete your knowledge. If you want to start from scratch, I would recommend doing any language tutorial online, getting comfortable with that material, and then picking up this book. The book takes a browser-based approach, but the examples written so that they are easy to follow for other environments like the Node console, which is what I am using since I am more interested in Node.js.
Top reviews from other countries
Este libro lo debería tener todo fan y desarrollador del lenguaje javascript. Y el precio en amazon es apenas por encima de su precio en USD marcado. Lo busqué en librerías pero era demasiado caro y solo lo manejaban por pedido.
Soy desarrollador web y estoy muy conforme con el contenido del libro. Esta muy bien impreso y las hojas son de buena calidad (es un papel suavecito como sedoso).
Reviewed in Mexico on January 17, 2019
Este libro lo debería tener todo fan y desarrollador del lenguaje javascript. Y el precio en amazon es apenas por encima de su precio en USD marcado. Lo busqué en librerías pero era demasiado caro y solo lo manejaban por pedido.
Soy desarrollador web y estoy muy conforme con el contenido del libro. Esta muy bien impreso y las hojas son de buena calidad (es un papel suavecito como sedoso).







