Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This code snippet is used in Default Parameters in ES6 JavaScript Tutorial for SFDC Stop
// * Default value using ES6 syntax
function add(a, b = 2) {
console.log(a+b);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment