Created
April 1, 2016 21:37
-
-
Save lmccart/a5fb268495b22fac96840da313f45b6f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
this.throb = function(amp) { | |
if (amp) { | |
// do something | |
// like log the amp passed in | |
console.log(amp); | |
} | |
else { | |
// do something else | |
// like return the number 10 | |
console.log('this function was called with no arguments'); | |
return 10; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment