ES6 Default Parameter
Function with no argument can use default parameter as its default value.
If a parameter is not provided in a function, then its value becomes undefined. In this case, the default value that we specify is applied by the compiler.
function greet(name ...
chineduokosi.hashnode.dev2 min read