efficientuser.com
Default Parameters – ECMAScript 6
In JavaScript, parameters of functions default to undefined. However, in some situations, it might be useful to set a different default value. In the past, the default value for a parameter is defi…