Created
January 24, 2016 14:44
-
-
Save VoloshchenkoAl/fd1512f8762d2fdf5969 to your computer and use it in GitHub Desktop.
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 max(a,b,c){ | |
var maxValue = Number.NEGATIVE_INFINITY; | |
for(var i = 0; i<arguments.length; i++) | |
if(maxValue < arguments[i]) | |
maxValue = arguments[i]; | |
return maxValue; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment