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

Introducing ECMAScript 2016

ikkou
June 21, 2016

Introducing ECMAScript 2016

ikkou

June 21, 2016
Tweet

More Decks by ikkou

Other Decks in Technology

Transcript

  1. whoami • @ikkou • Crea+ve Technology Group Manager • Love

    Front-end, especially Web VR • g1983ers • Meguro.es, Organizer • VR Tech Tokyo, Organizer
  2. Meguro.es is Awesome JavaScript Community • 2016/04/19 Meguro.es #3 @Drecom

    • 2016/02/10 Meguro.es #2 @Drecom • 2015/12/08 Meguro.es #1 @Drecom
  3. PR::VR Tech Tokyo • VR Tech Tokyo is Awesome VR

    Developer Community. • 2016/07/27 VR Tech Tokyo #2 <- New!! • 2016/05/26 VR Tech Tokyo #1
  4. ES2016? ES7? Please stop referring to proposed JavaScript features as

    ES7 So I’m not the first to remind everyone and won’t be the last, but now that feature list for ES2016 aka ES7 is out, and doesn’t actually include any of the features most people talk about, it’s officially Cme to just stop using ES7 to mean “any proposed feature that may or may not even make it”.1 — Jay Phelps 1 Array.prototype.includes()͕ES2016ʹೖΓ·ͨ͠Ͷ - Qiita
  5. ϒϥ΢βରԠͷঢ়گ ECMAScript Next compa2bility tableΛࢀর • Array.prototype.includes • Chrome, Firefox,

    Edge 14+, Safari 9+ • exponenAaAon (**) operator • Chrome 52+, Edge 14+
  6. indexOf()ϝιου࣌୅ var ary = [ 1, 2, NaN ] ary.indexOf(

    2 ) != -1 // true ary.indexOf( NaN ) != -1 // false
  7. includes()ϝιου࣌୅ var ary = [ 1, 2, NaN ] ary.includes(2);

    // true ary.includes('2'); // false ary.includes(3); // false ary.includes(1, 1); // false ary.includes(2, -1); // false ary.includes(NaN); // true
  8. includesͱindexOf͸NaNͷѻ͍͕ҟͳΔ var ary = [ 1, 2, NaN ] ary.indexOf(

    NaN ) != -1 // false ary.includes(NaN); // true
  9. Exponentiation Operator࣌୅ // 2ͷ10৐ > 2 ** 10 > 1024

    // 10ͷ10৐ > 10 ** 10 > 10000000000 // equal a = a * a; > let a = 2; > a **= 10; > 1024