Skip to Content
JavaScript
book

JavaScript

by T. J. Crowder
July 2020
Intermediate to advanced content levelIntermediate to advanced
608 pages
15h 43m
English
Wrox
Content preview from JavaScript

3New Function Features

In this chapter you'll learn about many of the exciting new features of functions in modern JavaScript, such as arrow functions, a lightweight, concise new form of function that solves an entire class of issues with callbacks; default parameter values for simplifying function code and improving support for tools; rest parameters providing true arrays of the “rest” of the arguments to a function after the named ones; the newly official name property on functions and the many and varied ways it gets set; and how function declarations within flow-control blocks work.

There are three function-related things we defer to later chapters:

  • Destructured parameters are covered in Chapter 7.
  • Generator functions are covered in Chapter 6.
  • async functions are covered in Chapter 9.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced JavaScript

Advanced JavaScript

Zachary Shute

Publisher Resources

ISBN: 9781119367956Purchase book