[2,4,6,8].map(x => x+1) for(let x=0; x<2; x++) { console.log(x) } console.log(x); new Creature('Bob', 'friendly') (new Human('Bob', 3, 'friendly')).toString() var priv = 0; export var pub = 3; export class pubObj { constructor(val) { this.inc = val + ++priv; } } import {pub as a, pubObj as Obj} from 'export-statement'; console.log((new Obj(1 + a)).inc); console.log((new Obj(2 + a)).inc); console.log(priv); for (let x of [1, 3, 5]) { console.log(x); } [for (x of [2, 3]) for(y of [2, 3])Math.pow(x, y)] (for (x of [2, 3]) Math.pow(x, 2)) var [a,,[b,,[c],d]] =[1, 0, [2, 0, [3, 0], 4], 0] var {A: a, B: {C: b}} ={A: 1, B: {C: 2}, D: 3} function params(a=0, b=0){ return a+b} rest(a, b, ...rest){} ./traceur --out ecma5.js --script ecma6.js import {Metronome} from 'metronome'; var met; $(document).ready(() => met = new Metronome()) $('#start').click(() => met.play($('#beats').val())); $('#stop').click(() => met.stop());