Default parameters
Overview
Default parameters are one of the feature introduced in ES6 (the 6th version of ECMAScript). By using this feature developers can initialize a function parameter with a default value, if no value or “undefined” is passed as an argument to a ...
·3 min read·bhavanas.ioRead the article
Anand Baraik
A good read.