Secrets of the JavaScript Ninja

Secrets of the JavaScript Ninja
By John Resig, Bear Bibeault, Josip Maras

List Price: $44.99
Price: $40.36 Details

Availability: Usually ships in 24 hours
Ships from and sold by

35 new or used available from $32.19

Average customer review:
(25 customer reviews)

Product Description


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


  1. JavaScript is everywhere
  2. Building the page at runtime

  4. First-class functions for the novice: definitions and arguments
  5. Functions for the journeyman: understanding function invocation
  6. Functions for the master: closures and scopes
  7. Functions for the future: generators and promises

  9. Object orientation with prototypes
  10. Controlling access to objects
  11. Dealing with collections
  12. Wrangling regular expressions
  13. Code modularization techniques

  15. Working the DOM
  16. Surviving events
  17. Developing cross-browser strategies

Product Details

  • Amazon Sales Rank: #94315 in Books
  • Published on: 2016-09-10
  • Original language: English
  • Number of items: 1
  • Dimensions: 9.20" h x .90" w x 7.30" l, .0 pounds
  • Binding: Paperback
  • 464 pages

Editorial Reviews

About the Author

John Resig is an acknowledged JavaScript authority and the creator of the jQuery library.

Bear Bibeault is a web developer and 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 whose thesis on automating reuse in web application development included implementing a JavaScript interpreter in JavaScript.

Customer Reviews

Most helpful customer reviews

16 of 16 people found the following review helpful.
By mariya martinez
I never write reviews but I have to because I'm pretty frustrated. First off, the book is great BUT there are a TON OF TYPOS!!!! Especially in chapter 9 (answers too). If you can catch all of the typos then you'll be fine... otherwise you might rage quit.

2 of 2 people found the following review helpful.
5Excellent book to really learn JavaScript
By Ryan
A tried a few JavaScript learning sources before this one, and they would show me good ways toward particular ends, but left me wondering why the details were chosen the way they were, and what other possibilities existed. I felt too bogged down by lingering questions to feel confident. After reading this book, I feel as if I actually know the language JavaScript, not merely a way to use the language.

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.

1 of 1 people found the following review helpful.
3Meh- Not really Ninja, but OK...
By Arman
I read so many good reviews about the previous edition a year ago and was looking forward to this one. I got this book thinking it would help me become a JS ninja...Meh...Not really! Intermediate at best.

Some topics covered were helpful (ex: promises and generators, module patterns), but the authors rarely discuss pros and cons of what they are teaching. JavaScript is a flexible language and often too much so at times (Brandon Eich only had 10 days to invent the first version of JavaScript!) and they hardly skim the surface of functional programming or even object oriented programming (ex: composition vs. inheritance). They don't even discuss the cons of classes in JS, for example, classes do not support private fields. There's many reasons not to use classes in JavaScript and factory patterns are much better overall- see Eric Elliot, Douglas Crockford, or FunFunFunction. Some of the book's code is mixed with ES5 and ES6- why?

Given how credible these authors are supposed to be and how this book is marketed, I can't give this more than three stars. If I remember correctly, "Learning JavaScript: JavaScript Essentials for Modern Application Development" by Ethan Brown introduces more topics, but is more modest in it's presentation, so check that one out before you make a decision of which book to buy.

See all 25 customer reviews...

Connect with defaultLogic
What We've Done
Led Digital Marketing Efforts of Top 500 e-Retailers.
Worked with Top Brands at Leading Agencies.
Successfully Managed Over $50 million in Digital Ad Spend.
Developed Strategies and Processes that Enabled Brands to Grow During an Economic Downturn.
Taught Advanced Internet Marketing Strategies at the graduate level.

Manage research, learning and skills at defaultLogic. Create an account using LinkedIn or facebook to manage and organize your IT knowledge. defaultLogic works like a shopping cart for information -- helping you to save, discuss and share.

  Contact Us