#es6

Nullish Coalescing Operator (??) In Javascript

Oct 20, 2020

The nullish coalescing operator returns the left hand side if it is not null or undefined, otherwise it returns the right hand side. This makes it different from the logical OR (||) operator which returns the right hand side if the left side is falsey. Let’s see some examples to see exactly the behavior.

Javascript Rest Parameters

Apr 21, 2019

ES6 introduced the rest parameter syntax which you should use instead of the arguments object for a javascript function