
Secrets of the JavaScript Ninja
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
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
More details
Other editions
Additional editions

Person
Content
- Intro
- Copyright
- Brief Table of Contents
- Table of Contents
- ES6 cheat sheet
- Praise for the First Edition
- Author's Introduction
- Acknowledgments
- About this Book
- About the Cover Illustration
- Part 1. Warming up
- Chapter 1. JavaScript is everywhere
- Chapter 2. Building the page at runtime
- Part 2. Understanding functions
- Chapter 3. First-class functions for the novice: definitions and arguments
- Chapter 4. Functions for the journeyman: understanding function invocation
- Chapter 5. Functions for the master: closures and scopes
- Chapter 6. Functions for the future: generators and promises
- Part 3. Digging into objects and fortifying your code
- Chapter 7. Object orientation with prototypes
- Chapter 8. Controlling access to objects
- Chapter 9. Dealing with collections
- Chapter 10. Wrangling regular expressions
- Chapter 11. Code modularization techniques
- Part 4. Browser reconnaissance
- Chapter 12. Working the DOM
- Chapter 13. Surviving events
- Chapter 14. Developing cross-browser strategies
- Appendix A. Additional ES6 features
- Appendix B. Arming with testing and debugging
- Appendix C. Exercise answers
- Index
- List of Figures
- List of Tables
- List of Listings
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.