What's new in ES2020
What’s new in ES2020
ES2020 includes many new interesting changes and we are going to cover them in this lesson.
Not all browsers currently support these features so, I recommend you use the latest version of Chrome or Firefox to test the code examples. Otherwise, if you want to use them in your project, be sure to install a compiler like Babel, which at their latest version 7.8 already supports ES2020 by default so you don’t need to use any plugin.
BigInt
The support for BigInt
means that we will be able store much larger integers in our JavaScript
. The current max is 2^53 and you can get it by using Number.MAX_SAFE_INTEGER
. That does not mean that you cannot store larger integer, but JavaScript
does not handle them well, let’s look at an example:
Get hands-on with 1200+ tech skills courses.