About This Title

Pages: 286
Published: June 2018
ISBN: 9781680505467
In Print

Skill Level Meter

Rediscovering JavaScript

Master ES6, ES7, and ES8

by Venkat Subramaniam

JavaScript is no longer to be feared or loathed—the world’s most popular and ubiquitous language has evolved into a respectable language. Whether you’re writing front-end applications or server-side code, the phenomenal features from ES6 and beyond—like the rest operator, generators, destructuring, object literals, arrow functions, modern classes, promises, async, and metaprogramming capabilities—will get you excited and eager to program with JavaScript. You’ve found the right book to get started quickly and dive deep into the essence of modern JavaScript. Learn practical tips to apply the elegant parts of the language and the gotchas to avoid.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $27.95 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal


Paperback Formats:

Please support indie bookstores!
Find indie bookstores in the U.S. Find indie bookstores around the world.


JavaScript is a black swan that no one, including the author of the language, thought would become a popular and ubiquitous language. Not long ago, it was the most hated and feared language you could use to program the web. JavaScript ES6 and beyond has gone through a significant makeover. Troublesome features have been replaced with better, elegant, more reliable alternatives. This book includes many practical examples and exercises to help you learn in depth. It will not bore you with idiosyncrasies and arcane details intended for bad interview questions. Instead, it takes you into key features that you can readily use in your day-to-day projects.

Whether you program the front-end or the server side, you can now write concise, elegant, and expressive JavaScript with newer features like default parameters, template literals, rest and spread operators, destructuring, arrow functions, and generators. Take it up a notch with features like infinite series, promises, async, and metaprogramming to create flexible, powerful, and extensible libraries. While the evolved features of the language will draw you in, the hundreds of examples in this book will pin the concepts down for you to use on your projects. Take command of modern JavaScript and unlock your potential to create powerful applications.

What You Need

To try out the examples in the book you will need a computer with Node.js, a text editor, and a browser like Chrome installed in it.

Resources

Releases:

  • P1.0 2018/06/11
  • B5.0 2018/05/31
  • B4.0 2018/04/11
  • B3.0 2018/04/02

Contents & Extracts

  • Acknowledgements
  • Introduction
  • The Safe Alternatives
    • JavaScript Gotchas
      • Be Careful Where You Break Lines
      • Use = Instead of
      • Declare Before Use
      • Stay One Step Ahead
      • Wrapping Up
    • Variables and Constants excerpt
      • Out with var
      • In with let
      • Perils of Mutability
      • const
      • Safer Code with let and const
      • Prefer const over let
      • Wrapping Up
    • Working with Function Arguments excerpt
      • The Power and Perils of arguments
      • Using the Rest Parameter
      • The Spread Operator
      • Defining Default Values for Parameters
      • Wrapping Up
  • Nice Additions
    • Iterators and Symbols
      • The Convenience of Enhanced for
      • Symbol—A New Primitive Type
      • Using Custom Iterators and Generators
      • Creating Infinite Iterators
      • Wrapping Up
    • Arrow Functions and Functional Style
      • From Anonymous to Arrow Functions
      • Anonymous vs. Arrow Functions
      • Limitations of Arrow Functions
      • When to Use Arrow Functions
      • Arrow Functions and Functional Style
      • Wrapping Up
    • Literals and Destructuring
      • Using Template Literals
      • Multiline Strings
      • Tagged Template
      • Enhanced Object Literals
      • Destructuring
      • Wrapping Up
  • OO and Modular Code
    • Working with Classes excerpt
      • Creating a Class
      • Implementing a Constructor
      • Defining a Method
      • Defining Computed Members
      • Creating Properties
      • Defining Class Members
      • Class Expressions
      • New Built-in Classes: Set, Map, WeakSet, and WeakMap
      • Wrapping Up
    • Using Inheritance
      • Understanding Prototypal Inheritance
      • Inheriting from a Class
      • Managing Instance Types with species
      • Wrapping Up
    • Using Modules
      • Creating a Module
      • Exporting from a Module
      • Importing from a Module
      • Wrapping Up
  • Going Meta
    • Keeping Your Promises
      • No Thanks to Callback Hell
      • Promises to the Rescue
      • Ways to Create a Promise
      • Chaining Promises
      • Working with Multiple Promises
      • Async and Await
      • Wrapping Up
    • Exploring Metaprogramming
      • The Power and Perils of Metaprogramming
      • Dynamic Access
      • Member Injection
      • Wrapping Up
    • Deep Dive into Metaprogramming
      • Purpose of Reflect
      • Metaprogramming with Proxy
      • Synthesizing Members with Proxy
      • Using Decorators
      • Wrapping Up

Author

Dr. Venkat Subramaniam is an award-winning author, founder of Agile Developer, Inc., and an instructional professor at the University of Houston. He has trained and mentored thousands of software developers in the US, Canada, Europe, and Asia, and is a regularly invited speaker at several international conferences. He’s the (co)author of multiple books, including the 2007 Jolt Productivity award winning book Practices of an Agile Developer.

eBook Formats:

  • PDF for desktop/tablets

  • epub for Apple Books, e-readers

  • mobi for Kindle readers

Get all eBook formats here for $27.95 (USD)

Add to Cart we accept visa, mastercard, amex, discover, paypal


Paperback Formats:

Please support indie bookstores!
Find indie bookstores in the U.S. Find indie bookstores around the world.

Related Titles:

Skill Level Meter

About This Title

Pages: 286
Published: June 2018
ISBN: 9781680505467
Edition: 1
In Print