Created
November 13, 2012 14:47
-
-
Save ericrrichards/4066093 to your computer and use it in GitHub Desktop.
Options
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
| function Foo( args ){ | |
| var a = 0; | |
| var b = 0; | |
| var c = 0; | |
| var d = 0; | |
| var e = 1; | |
| if ( args['a'] ) a = args['a']; | |
| if ( args['b'] ) b = args['b']; | |
| if ( args['c'] ) c = args['c']; | |
| if ( args['d'] ) d = args['d']; | |
| if ( args['e'] ) e = args['e']; | |
| return (a + b + c + d)/e; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment