Skip to content

Instantly share code, notes, and snippets.

@stepharr
Last active June 7, 2018 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stepharr/f0b89ade7d93bc2f50b3b0c737558a5e to your computer and use it in GitHub Desktop.
Save stepharr/f0b89ade7d93bc2f50b3b0c737558a5e to your computer and use it in GitHub Desktop.
Google IO '18: Build the future of the Web with Modern Javascript

ECMA Modules

  • .mjs
  • import/export

Numeric Literals

  • Big Int

Async iterators/generators

  • for await

Regex

  • /s flag for line endings
  • named capture groups
  • unicode matching
  • lookbehind assertions

String matchAll

try/catch unused variables

trimming white space

  • trimStart()
  • trimEnd()

Promise Finally

  • then/catch/finally

Spread/Rest for object destructuring

  • shallow clone an object

Class fields

  • private fields
  • no longer require constructor

use babel/present-env to transpile features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment