Open harmansingha opened 5 years ago
There is one more way to set default parameter value:
function sendEmail(configuration, provider = "Gmail") { console.log(`Provider: ${provider}`); } sendEmail("Config");
Indeed it’s possible in es6
can you create a pull request?
There is one more way to set default parameter value: