Expression bodies ................................................................................................................44
Statement bodies .................................................................................................................45
Lexical (this) .........................................................................................................................45
Chapter 5 Extended Parameter Handling .............................................................................48
Default parameter values and optional parameters ..............................................................48
Rest parameter.....................................................................................................................48
Spread operator ...................................................................................................................49
Chapter 6 Template Literals ..................................................................................................51
String interpolation ...............................................................................................................51
Custom interpolation ............................................................................................................53
Dynamic template literals .....................................................................................................54
Chapter 7 Destructuring Assignment ...................................................................................56
Array matching .....................................................................................................................56
Object matching, shorthand notation ....................................................................................56
Object matching, deep matching ..........................................................................................57
Object matching, parameter context .....................................................................................57
Fail-soft destructuring ...........................................................................................................58
Chapter 8 Modules .................................................................................................................60
Export ...................................................................................................................................60
Import ...................................................................................................................................60
Default ..................................................................................................................................62
Wildcard ...............................................................................................................................63
Module loaders .....................................................................................................................64
Chapter 9 Classes ..................................................................................................................67
Class definition .....................................................................................................................67
Class inheritance/base class access ....................................................................................68
评论0