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 ...
bhavanas.io3 min read
Anand Baraik
Novice in everything, student for life!
A good read.