Created
October 4, 2016 23:28
-
-
Save Sysetup/58b301c8345655be024235224df5b40b to your computer and use it in GitHub Desktop.
Fallback
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 foo(bar) { | |
var bar = bar || 0; //This sets bar to 0 if it's not already set | |
console.log(bar); | |
} | |
foo(); | |
foo(1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment