my 3 favorite upcoming ES2020 features

1. Dynamic import

I'm super excited to see ES2020 released mainly because of this one feature. It allows you to do something like this. Where you can import modules if and when you need them Instead of just importing all of your modules at the top. Here’s an example:

es2020 Dynamic Import example

2. BigInt

BigInt is a variable type in Javascript which gives you the ability to store 64-bit numbers in a BigInt variable. Instead of 32 bit, which means that it can store larger numbers than normal integers. Here’s an example:

es2020 Big Int example

3. Optional chaining

optional chaining gives you the ability to access deeply nested values without worrying if the property exists or not. If the property doesn't exist it just returns undefined instead of a critical error. Here’s an example

optional chaining es2020 example


es2020 has so many exciting new features for javascript These where just the ones that I'm looking forward to. You can see a full list of the es2020 features here.




Love podcasts or audiobooks? Learn on the go with our new app.


Solution to : Mixed Content Page: requested an insecure stylesheet error

Use Swiper JS with ionic 6 (ion-slides alternative)

Forget if-else , here comes the Ternary operator !!

Hello world !!

RxJS: How to Use Type Guards with Observables

Making mistakes: Developing a Nextjs App for the wrong reasons

Tips to simplify your JavaScript code

Create & host a Discord bot with Heroku in 5 min

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


More from Medium

Dear Web Devs, Please Use Anchors Instead of Divs for Buttons

“A.SO.DE”, A Journey of Automobilist to Software Developer.

KFC clone using- HTML, CSS & JS-Unit 3

Web Storage API Explained with Examples