Javascript destructuring vs optional chaining and nullish coalescing operator

Javascript was designed to be the glue between HTML and CSS and nothing more. Before ES6 in 2015, the language was pretty much dormant for 6 long years. Today, it is arguably one of the most used language with new features been released every year. Destructing, optional chaining and nullish coalescing have made our developer life so much easier. Let’s have a look at them.

What is destructuring ?

It allows the Javascript expression to retrieved values from objects or arrays…