Secrets of the JavaScript Ninja
eBook - ePub

Secrets of the JavaScript Ninja

  1. 464 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Secrets of the JavaScript Ninja

About this book

Summary 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

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Secrets of the JavaScript Ninja by Josip Maras in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in JavaScript. We have over one million books available in our catalogue for you to explore.

Table of contents

  1. Copyright
  2. Brief Table of Contents
  3. Table of Contents
  4. ES6 cheat sheet
  5. Praise for the First Edition
  6. Author’s Introduction
  7. Acknowledgments
  8. About this Book
  9. About the Cover Illustration
  10. Part 1. Warming up
  11. Part 2. Understanding functions
  12. Part 3. Digging into objects and fortifying your code
  13. Part 4. Browser reconnaissance
  14. Appendix A. Additional ES6 features
  15. Appendix B. Arming with testing and debugging
  16. Appendix C. Exercise answers
  17. Index
  18. List of Figures
  19. List of Tables
  20. List of Listings