Created
December 18, 2016 23:25
-
-
Save gyver98/8eb6ae394e97289fcd6933c5c8d5304f to your computer and use it in GitHub Desktop.
Default Values for Function Parameters in ES6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function receive (complete = function () { | |
console.log("complete"); | |
}) { | |
complete(); | |
} | |
receive(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment