Please enable JavaScript.
Coggle requires JavaScript to display documents.
ES6 (ECMAScript 6 Features (Class (class declarations (class Rectangle {})…
ES6
ECMAScript 6 Features
-
-
Enhanced Object Literals
is a list of zero or more pairs of property names and associated values of an object, enclosed in curly braces ({}).
-
Destructuring
expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables
-
-
Let + Const
let is the new var
let allows you to declare variables that are limited in scope to the block, statement, or expression on which it is used
-
Iterators + For..Of
The for...of statement creates a loop iterating over iterable objects (including Array, Map, Set, String, TypedArray, arguments object and so on),
Generators
Generators simplify iterator-authoring using function and yield. A function declared as function returns a Generator instance. Generators are subtypes of iterators which include additional next and throw
Modules
-
-
export : statement is used when creating JavaScript modules to export functions, objects, or primitive values from the module
-
-
-
-
-
-
-
cheatsheet
var versus let / const
statement declares a block scope llet: ocal variable, optionally initializing it to a value.
const: are block-scoped, much like variables defined, The value of a constant cannot change through re-assignment, and it can't be redeclared.
-
-