New String Functions
str.codePointAt: unicode codepoint
str.normalize: unicode normalization,
not polyfilled by default
- github.com/walling/unorm
Slide 31
Slide 31 text
Template Strings
Slide 32
Slide 32 text
Template Strings
Slide 33
Slide 33 text
Default Parameters
Slide 34
Slide 34 text
Default Parameters
Slide 35
Slide 35 text
Rest arguments
Slide 36
Slide 36 text
Spread Arguments
Slide 37
Slide 37 text
Destructuring Assignment
Slide 38
Slide 38 text
Object Literal Extensions
Slide 39
Slide 39 text
Object Literal Extensions
Slide 40
Slide 40 text
Object Literal Extensions
Slide 41
Slide 41 text
Object Literal Extensions
Slide 42
Slide 42 text
const
Slide 43
Slide 43 text
let
Slide 44
Slide 44 text
let
Slide 45
Slide 45 text
Modules
• Unify the experience of separating &
including code from multiple files
(modules)
• Similar to CommonJS
• Can work with various module
formats (UMD, AMD)
Slide 46
Slide 46 text
No content
Slide 47
Slide 47 text
No content
Slide 48
Slide 48 text
Class Syntax
• Syntax "Sugar" to Prototype Classes
• Sets up proper inheritance chain
• Reference inherited methods with
super.methodName()
• Cannot have prototype or static props
Slide 49
Slide 49 text
• No static or prototype
properties
• Getters & setters will
only work in IE 9+
Class Syntax
Slide 50
Slide 50 text
Class Syntax
• No static or prototype
properties
• Getters & setters will
only work in IE 9+
Slide 51
Slide 51 text
Symbol()
• New primitive type, unique
• Access control for property state
• Also used for new protocols
"Symbol.iterator"
Slide 52
Slide 52 text
Symbols
• No static or prototype
properties
• Getters & setters will
only work in IE 9+
Slide 53
Slide 53 text
Symbols
• No static or prototype
properties
• Getters & setters will
only work in IE 9+
Slide 54
Slide 54 text
Iterators
• Ability to treat any value as a
collection with a standard API
• Allows for use with for-of loop
Suggestions for Adoption
• Introduce into test suites
• Gradually introduce different
new features
• Check support if you have
questions
Slide 68
Slide 68 text
Support:
Slide 69
Slide 69 text
June 18, 2015
"…when the ECMA General Assembly
will vote on and approve the 6th
edition of Ecma-262 and usher in the
next era of JavaScript."
http://bocoup.com/weblog/stabilizing-es6/