Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lo que la cafeína le hizo a JS

Sergio Arbeo
November 22, 2014

Lo que la cafeína le hizo a JS

Un paseo por la nueva sintaxis de ECMAScript 6

Sergio Arbeo

November 22, 2014
Tweet

More Decks by Sergio Arbeo

Other Decks in Programming

Transcript

  1. MADRID · NOV 21-22 · 2014 Sergio Arbeo {Back,Front}-end developer

    at codecantor @Serabe Historia de un despecho transpilado Lo que la cafeína le hizo a JS
  2. MADRID · NOV 21-22 · 2014 WHY? Implicit returns No

    named functions Strange regexes Significant whitespace
  3. MADRID · NOV 21-22 · 2014 WHY? Implicit returns No

    named functions Strange regexes Significant whitespace Generators
  4. MADRID · NOV 21-22 · 2014 let •  The new

    var. •  Block scope. •  No hoisting.
  5. MADRID · NOV 21-22 · 2014 let •  The new

    var. •  Block scope. •  No hoisting. Actually, it does hoist, but raises a syntactic error at runtime when used before being asigned.