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

What's New in JavaScript and Why (korean, 2019)

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

What's New in JavaScript and Why (korean, 2019)

What's New in JavaScript and Why (korean, 2019)

I/O Extended 2019 Pangyo

Avatar for Jihoon KIm

Jihoon KIm

June 21, 2019
Tweet

More Decks by Jihoon KIm

Other Decks in Programming

Transcript

  1. • What’s new in JavaScript(Google I/O ’19) ীࢲ աৡ ੉ঠӝ

    + ࢎ઒ • ੉޷ ੸ਊغ঻Ѣա ֤੄ ઺ੋ JavaScript ӝמٜী ؀೧ ੉ঠӝ Overview
  2. • class fields • String#matchAll • numeric separators • BigInt

    • Array#{flat, flatMap} • Object.fromEntries Index • globalThis • Array#sort • Intl • Promise • WeakRefs
  3. BigInt * ࣗࣻ੼ ࠛо! * Number ৬ ഒਊ೧ࢲ ࢎਊ ࠛо!

    
 (э਷ ੗ܐഋਵ۽ ఋੑ நझ౟ ೧઻ঠ ೣ) * Math ё୓੄ ݫࢲ٘ܳ ೣԋ ࢎਊ ࠛо
 * https://developer.mozilla.org/ko/docs/Web/JavaScript/ Reference/Global_Objects/BigInt
  4. BigInt Chrome 67+ Firefox 68+ Node.js 12+ (10.8+) https://v8.dev/features/bigint https://node.green/#ESNEXT-candidate--stage-3--BigInt

    pure-JavaScript implementation of the official ECMAScript BigInt proposal 
 - https://github.com/GoogleChromeLabs/jsbi
  5. Array#{flat, flatMap} Chrome 69+ Firefox 62+ Safari 12+ Node.js 11+

    https://v8.dev/features/array-flat-flatmap
  6. WeakRef - proposal https://github.com/tc39/proposal-weakrefs https://tc39.es/proposal-weakrefs/#sec-weak-ref-objects https://www.youtube.com/watch?v=c0oy0vQKEZE&t=1950s “ A WeakRef is

    an object that is used to refer to a target object without preserving it from garbage collection. WeakRefs can dereference to allow access to the target object, if the target object hasn't been reclaimed by garbage collection. ”
  7. WeakRef - proposal Usage * cache(performExpensiveOperation) * WebAssembly * prevent

    memory leaks https://github.com/tc39/proposal-weakrefs https://tc39.es/proposal-weakrefs/#sec-weak-ref-objects https://www.youtube.com/watch?v=c0oy0vQKEZE&t=1950s
  8. TMI

  9. * Node.js check v8 version * node -e ‘console.log(process.versions.v8);'
 *

    Node.js Internationalization Support * https://nodejs.org/api/intl.html * (default) small-icu