Customers who viewed this item also viewed
Buy New
-75%
$10.19$10.19
FREE delivery May 5 - 11
Advertisement
Advertisement
Ships from: Sandman355 L.L.C Sold by: Sandman355 L.L.C
Used - Very Good
$1.86$1.86
$3.98 delivery Tuesday, May 5
Advertisement
Advertisement
Ships from: World of Books (previously glenthebookseller) Sold by: World of Books (previously glenthebookseller)
Sorry, there was a problem.
There was an error retrieving your Wish Lists. Please try again.Sorry, there was a problem.
List unavailable.
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.
Follow the authors
OK
Secrets of the JavaScript Ninja First Edition
Purchase options and add-ons
Secrets of the Javascript Ninja takes you on a journey towards mastering modern JavaScript development in three phases: design, construction, and maintenance. Written for JavaScript developers with intermediate-level skills, this book will give you the knowledge you need to create a cross-browser JavaScript library from the ground up.
About this Book
You can't always attack software head-on. Sometimes youcome at it sideways or sneak up from behind. You need tomaster an arsenal of tools and know every stealthy trick.You have to be a ninja.
Secrets of the JavaScript Ninja leads you down the pathway toJavaScript enlightenment. This unique book starts with keyconcepts, like the relationships between functions, objects, andclosures, taught from the master's perspective. You'll grow fromapprentice to ninja as you soak up fresh insights on the techniquesyou use every day and discover features and capabilities you neverknew about. When you reach the final chapters, you'll be ready tocode brilliant JavaScript applications and maybe even write yourown libraries and frameworks.
You don't have to be a ninja to read this book—just be willing tobecome one. Are you ready?
Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.
What's Inside
- Functions, objects, closures, regular expressions, and more
- Seeing applications and libraries from the right perspective
- Dealing with the complexities of cross-browser development
- Modern JavaScript design
About the Authors
John Resig is an acknowledged JavaScript authority and the creatorof the jQuery library. Bear Bibeault is a web developer and coauthorof Ajax in Practice, Prototype and Scriptaculous in Action, and jQueryin Action from Manning.
Table of Contents
PART 1 PREPARING FOR TRAINING
- Enter the ninja
- Arming with testing and debugging
PART 2 APPRENTICE TRAINING
- Functions are fundamental
- Wielding functions
- Closing in on closures
- Object-orientation with prototypes
- Wrangling regular expressions
- Taming threads and timers
PART 3 NINJA TRAINING
- Ninja alchemy: runtime code evaluation
- With statements
- Developing cross-browser strategies
- Cutting through attributes, properties, and CSS
PART 4 MASTER TRAINING
- Surviving events
- Manipulating the DOM
- CSS selector engines
- ISBN-10193398869X
- ISBN-13978-1933988696
- EditionFirst Edition
- PublisherManning
- Publication dateJanuary 17, 2013
- LanguageEnglish
- Dimensions7.38 x 0.7 x 9.25 inches
- Print length392 pages
There is a newer edition of this item:
Customers who viewed this item also viewed
Secrets of the JavaScript NinjaPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Sunday, May 3Only 5 left in stock (more on the way).
Eloquent JavaScript, 4th EditionPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Sunday, May 3
Customers also bought or read
- JavaScript: The Definitive Guide: Master the World's Most-Used Programming Language
Paperback$63.13$63.13FREE delivery May 15 - 18 - The Road to React: Your journey to master plain yet pragmatic React.js
Paperback$29.99$29.99Delivery Sun, May 3 - JavaScript from Beginner to Professional: Learn JavaScript quickly by building fun, interactive, and dynamic web apps, games, and pages
Paperback$28.99$28.99Delivery Sun, May 3 - JavaScript and jQuery: Interactive Front-End Web Development
Paperback$22.80$22.80Delivery Sun, May 3 - HTML and CSS: Design and Build Websites#1 Best SellerCSS Programming
Paperback$14.22$14.22Delivery May 15 - 18
Editorial Reviews
About the Author
Bear Bibeault has been working in the area of web applications since the mid-nineties, getting started with beta versions of JSP and Servlets. He is a senior moderator at the popular JavaRanch site, and has contributed articles to the JavaRanch Journal as well as Dr Dobb's Journal online. He is a co-author of several Manning books including Ajax in Practice, Prototype and Scriptaculous in Action, jQuery in Action, and jQuery in Action, Second Edition. He works and resides in Austin, Texas.
Product details
- Publisher : Manning
- Publication date : January 17, 2013
- Edition : First Edition
- Language : English
- Print length : 392 pages
- ISBN-10 : 193398869X
- ISBN-13 : 978-1933988696
- Item Weight : 1.44 pounds
- Dimensions : 7.38 x 0.7 x 9.25 inches
- Best Sellers Rank: #3,135,626 in Books (See Top 100 in Books)
- #627 in JavaScript Programming (Books)
- #3,583 in Computer Programming Languages
- #7,826 in Programming Languages (Books)
- Customer Reviews:
About the authors

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.

John Resig is the Dean of Open Source and head of JavaScript development at Khan Academy and the author of the book Pro JavaScript Techniques. He’s also the creator and lead developer of the jQuery JavaScript library.
Currently, John is located in Boston, MA. He’s hard at work on his second book, Secrets of the JavaScript Ninja.
Related products with free delivery on eligible orders
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
Generated from the text of customer reviewsSelect to learn more
Top reviews from the United States
There was a problem filtering reviews. Please reload the page.
- Reviewed in the United States on December 14, 2014Format: PaperbackVerified Purchase(Must READ) Book for every new and experienced web designer/developer. As an experienced full-stack web developer and instructor for more than 8 years, this is one of the most usable and skill developer books about JavaScript that I have ever seen. You should have previous exposure to JavaScript/CSS/HTML and some Ajax concepts and if you have Back-end technology on hand as well, it will help you to get the most out of the concepts covered in this book. I love the flow of information, relevant and clean code examples and explanations.
There is no escape from learning advanced JavaScript techniques and tools unless you decide to work as anything else but not Web industry expert. Forget about everything you knew about JavaScript since 10 years ago, This programming language has been changed a lot and is not a simple-to-ignore technology anymore. If you are a serious web expert (or want to be), use quality materials available in the market.This book is one of them without any doubt.
- Reviewed in the United States on December 2, 2013Format: PaperbackVerified PurchaseI am still reading the book and I have to say that so far I have enjoyed it. Even for a relatively new javascript programmer, this book is excellent in catching concepts that are ignored in most other web development books, primarily because it considers JS as a full fledge language which is the correct approach to explain javascript. That being said, a mastery of any object oriented programming language such as Java definitely helps to grasp the concepts explained in this book.
Its a good buy, and I highly recommend it. Appreciate the author's sense of humor every once in a while - its like a team member actually explaining stuff to you during code reviews :)
- Reviewed in the United States on March 21, 2013Format: PaperbackVerified PurchaseI really like the way this book is written. You will have no problems with reading it cover to cover if you are a little familiar with javascript. Even though I have written a fair amount of javascript code and used jquery and other popular js libraries, still I did learn a lot. The examples are amazing. They are really clearly discussed, and I believe it is due to Bierault's technical writing chops.
- Reviewed in the United States on November 6, 2013Format: PaperbackVerified PurchaseThis book gives great insight into the working of functions and closures in Javascript.
What is nice is that every bit of theory is accompanied with some code examples from libaries like jQuery or Prototype, and the examples are explained very well.
One minor negative point is that there are also a lot of pages in the book which are dedicated to deprecated statements like 'eval' and 'with'. It's nice to know how they work, but you shouldn't use them anyway so an entire chapter for each of them seems like too much attention.
- Reviewed in the United States on February 16, 2014Format: PaperbackVerified PurchaseThis is a really brilliant book that clearly explains WHY JavaScript has become the first choice for developing web applications on both client and server. The subtleties and nuances of closures and function based capability are carefully and clearly explained with lots of examples that you can run and explore.
The title and Ninja theme may seem a little silly, but don't be fooled. This is a serious and brilliantly conceived and executed tour of this powerful development language.
- Reviewed in the United States on January 26, 2014Format: PaperbackVerified PurchaseOne respect where the title is accurate in that this book is about coding Javascript directly, _not_ about coding to the interface of any library (like jQuery) that rides on top of Javascript. I found the explanations of "closures", of _exactly_ what it means for functions to be "first-class objects", and of function names and anonymous functions, very enlightening ...perhaps the best parts of the book.
I was somewhat hoping for a whole lot of nuggets for improving the conciseness and clarity and performance of my coding style, perhaps showing how best to take advantage of the structure of the language, or how best to code recurring structures such as looping.. But that isn't the focus of the book. A few gems are indeed spun off in the process of covering other topics, but there aren't oodles of them.
Disagreement with other Javascript luminaries, and with the direction of Javascript standards development, is often ignored or underplayed or muted. Although there is obvious potential for disagreement, controversy is definitely not the book's zeitgeist.
The book largely skirts the issue of Javascript being more "object oriented". There's a clear statement that at root Javascript is _not_ object-oriented, and a strong hint this isn't necessarily a bad thing. Also, some simple tricks for making Javascript _seem_ much more object-oriented than it appears at first glance are presented briefly in scattered locations. But there the coverage ends, without any theoretical underpinning nor in-depth discussion nor even any strong opinions.
Although two authors are listed, this is basically John Resig's book. A very few paragraphs did hint at tag-team authoring. But I suspect (but don't know for sure:-) mostly the publisher added the second author in exasperation over finally getting the book finished and out after almost five years.
The book isn't real clear just who its audience is: maintenance coders? creators of libraries? language nerds? The good thing about this ambiguity is the topics covered range more widely than expected.
Much of the second half of the book is various nitty-gritty details about coding around all the cross-browser and language-version and interpreter-implementation issues one runs into. Specific examples of the various quirks and workarounds were sometimes so bizarre it was clear there'd be little chance of an individual ever solving them. My overall takeaway from the second half of the book was that in almost all cases one should code to some sort of covering library (like jQuery) that handles all the quirks in a transparent way, rather than to Javascript directly. (I also picked up the suggestion Javascript would be easier in some future where IE6/IE7/IE8/IE9 have only insignificant market share.)
(Readers from different backgrounds will of course see the book very differently, so let me describe my own background: I'm a retired programmer who professionally used other languages exclusively and whose only acquaintance with Javascript comes from home use. I do have extensive experience with the related C though; for example I'm quite comfortable with and routinely use the difference between pre-increment and post-increment. I'm not a computer language nerd, nor even someone with a relatively good coding style overall. On the other hand, I was already fairly comfortable with some of the more obscure details of various Javascript implementations.)
Top reviews from other countries
ShardulReviewed in India on June 4, 20155.0 out of 5 stars The Good Parts" and you'd have covered all possible language features ...
Format: PaperbackVerified PurchaseSure shot way to go from novice to ninja ! Enjoying every moment with it ! Supplement this book with Douglas Crockford's "JavaScript, The Good Parts" and you'd have covered all possible language features of the language.
-
JuzanReviewed in France on March 30, 20145.0 out of 5 stars Un régale
Format: PaperbackVerified PurchasePour tout ceux qui veulent en savoir plus sur ce langage qui peut être le meilleur ami du dev web (comme son pire cauchemar:))
FélixReviewed in Spain on April 29, 20135.0 out of 5 stars Very good book to clarify concepts
Format: PaperbackVerified PurchaseNot a book for begginers, you can read it to became a JavaScript ninja. Not so hard, you don't need to be a JavaScript advanced programmer to understand it.
But if you are an high skill programmer, you can read it to clarify and order concepts.
Christian Del BiancoReviewed in Italy on March 16, 20165.0 out of 5 stars Very good book
Format: PaperbackVerified PurchaseIt is a great javascript book. Is not for beginner.
It is a deep tour on closure, JS object and inheritance.
It is well written and with clear examples.
It is he best book I have ever read on JS.
Huw JeffriesReviewed in the United Kingdom on June 23, 20135.0 out of 5 stars Excellent coverage of Javascript
Format: PaperbackVerified PurchaseThis book provides a great intermediate to advanced coverage of Javascript. (I don't recommend it for absolute beginners). I've also read "Javascript the good parts" by Douglas Crockford, which good but quite short and made the reader work hard to fill in the gaps / understand the examples. Secrets of the JavaScript Ninja is much easier reading and covers the material at a more leisurely pace.







