Jump to ratings and reviews
Rate this book

Secrets of the JavaScript Ninja

Rate this book
SummaryMore 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 TechnologyJavaScript 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 BookSecrets 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 InsideWriting more effective code with functions, objects, and closuresLearning to avoid JavaScript application pitfallsUsing regular expressions to write succinct text-processing codeManaging asynchronous code with promisesFully revised to cover concepts from ES6 and ES7About the ReaderYou don’t have to be a ninja to read this book—just be willing to become one. Are you ready?About the AuthorsJohn 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 ContentsPART 1 - WARMING UPJavaScript is everywhereBuilding the page at runtimePART 2 - UNDERSTANDING FUNCTIONSFirst-class functions for the definitions and arguments Functions for the understanding function invocation Functions for the closures and scopesFunctions for the generators and promisesPART 3 - DIGGING INTO OBJECTS AND FORTIFYING YOUR CODEObject orientation with prototypesControlling access to objectsDealing with collectionsWrangling regular expressionsCode modularization techniquesPART 4 - BROWSER RECONNAISSANCEWorking the DOMSurviving eventsDeveloping cross-browser strategies

463 pages, Kindle Edition

Published August 18, 2016

17 people are currently reading
42 people want to read

About the author

Josip Maras

3 books6 followers

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
10 (62%)
4 stars
3 (18%)
3 stars
2 (12%)
2 stars
1 (6%)
1 star
0 (0%)
Displaying 1 - 2 of 2 reviews
Profile Image for Lucy  Batson.
468 reviews9 followers
February 9, 2022
This book goes in deep on a lot of object-oriented stuff, and other corners of the JS including events, debugging, functions, etc. This seems overall solid, but a) it was last updated 6 years ago and a lot has changed in the JS landscape since then, and b) the OOP stuff takes up a good chunk of it. If you need to work in that kind of paradigm, this may be useful, it feels less than helpful for most modern JS devs.
Profile Image for Jeainny.
128 reviews2 followers
July 29, 2022
I got a job as a frontend developer because of this book.

I’m the kind of person who needs a true understanding of something before I can speak confidently about it.

The thorough knowledge that I gained from chapters like closures, event loops, and promises helped me wow interviewers.

I passed all spoken JavaScript interviews ever since I read this book.

One tip is that the book first emphasizes the functional programming side of JavaScript (which helps immensely if you use React and react hooks) but many places interviewed me on object oriented concepts.

Functional is an important JavaScript paradigm so don’t skip it, but I suggest prioritizing some chapters if you’re job searching.
Displaying 1 - 2 of 2 reviews

Can't find what you're looking for?

Get help and learn more about the design.