3. Const & Let
Support for constants (also known as "immutable variables"),
i.e., variables which cannot be re-assigned new content.
3
4. Arrow Function
Expression Bodies : More expressive
closure syntax.
4
Statement Bodies : More expressive closure
syntax
Lexical this : More intuitive handling of current
object context
5. Default Parameter Values
5
Extended Parameter
Rest Parameter : Aggregation of remaining arguments into
single parameter
Spread Operator : Spreading of elements of an iterate
collection (like an array or even a string) into both literal
elements and individual function parameters.
6. Modules
Value Export/Import : Support for
exporting/importing values from/to modules
without global namespace pollution.
6
Some additional features include export default and
export *:
Notice: this only makes the variable itself immutable, not its assigned content (for instance, in case the content is an object, this means the object itself can still be altered).
When add image, you must sent it to back! Right Click on Image -> Send to Back -> Send Back