Created
August 26, 2016 19:21
-
-
Save harryadel/e19f8a1e43840d75873757a38330485e 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
| /* | |
| My answer for exercise 'Minimum' | |
| in Eloquent JavaScript Second Edition | |
| Chapter 3 Functions | |
| */ | |
| function min(a,b) { | |
| x = a - b; | |
| if (x > 0) { | |
| return b; | |
| } else { | |
| return a; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment