1. Let, you can declare a variable by using allow instead of Var. Variables with let declarations have block-level scopes that take effect only in code blocks
2. const, using const declaration constants, once declared, cannot be changed
3. Pattern matching
var [A, B, c] = [1, 2, 3]
4. New String method
- Contains can find if a string is contained within B
- StartsWith can see if a string starts at another string
- EndsWith to see if a string is at the end of another string
- Repeat returns a new string that copies the original string n times
5. Global methods parseint and parsefloat are moved to the number object, using the same method
6. Number.isinteger () is used to determine whether a number is an integer, because the floating-point and integer storage methods are the same, so 3.0 and 3 are the same value
7. Math.trunc () is used to remove a decimal part of a number, returning an integral part
8. The find () method of the array object to find the first qualifying array element
9. Array.observe () and Array.unobserve () These two objects are used to listen for and suppress changes in the listening array
ES 7 new feature finishing