This is the 27th day of my participation in the More Text Challenge. For more details, see more text Challenge

preface

The foundation determines the superstructure! Recently I reviewed ES6, and I summarized the knowledge points into a brain map, which can deepen my impression and facilitate my future reference

Note: This series is divided into two parts: the first and the second

Next portal: three days and three nights, finishing the 30 sharp mind mapping | take you back to ES6 (below)

ECMAScript 6 profile

The previous life of ES, and the relationship with JS, etc

Babel

With Babel, you can convert ES6 code into ES5 code, solving compatibility problems

Let and const

Two new ways to declare variables, but different from var

Deconstruction assignment

Destructuring assignments match assignments according to a specific pattern

Extension operator

You can expand or collapse an array or object

Extension of a function

Functions have been extended with many new uses, such as default values, arrow functions, and so on

Object extensions and new methods

Objects added to the object, including the concise syntax of the object, new methods, etc

Extension of arrays

There are many new methods added to arrays, which fall into two classes: static methods and instance methods

Numerical extension

Many new things have been added to numeric values, including new notation, new static methods, extensions to Math objects, and more

String extensions and new methods

String expansion is also quite a lot, weapons also added a lot of instance methods

Regular extension

Enhanced RegExp constructor, added u, y modifiers, and more

Symbol

New data type in ES6 to represent unique values

end~

Above is the result of this collation, hope to be helpful to you!

Without my permission, shall not be reproduced

Welcome to like, favorites, if you have questions, welcome to leave a comment below ~