A new version of JavaScript has landed!
Every year JavaScript gets a handful of new features and functions for everyone to play with.
The TC39 committee have released the 2019 additions to ECMAScript , which is the generally accepted version of JavaScript we all know and love tolerate.
You can take a look at the TC39 Github to track the progress of proposed features, including all the ones they’ve accepted into the official language .
I drew up my own notes on the 7 big changes below:
- Optional Catch Binding
- Stable
array.sort()
- Flatten Arrays with
flat()
- Flatten & Map Arrays with
flatMap()
- Cut out Whitespace with
trimStart()
&trimEnd()
- Descriptions on Symbols
- Create Objects from Entries with
fromEntries()
These notes are all based off Mike Sherov’s egghead course on JavaScript ES2019 in Practice which is a good summary of all the new shiny bits, as well as how they apply in IRL dev situations.
Want more illustrated notes on web development?
Take a look at JavaScript Bits You Skipped the First Time Around JavaScript Bits You Skipped the First Time Around
Illustrated notes on advanced but fundamental topics in JavaScript , What the Fork is Babel? What the Fork is Babel?
Illustrated notes on how Babel works or [[JavaScript’s …spread Operator]]