Skip to content

Instantly share code, notes, and snippets.

@VoloshchenkoAl
Created January 24, 2016 14:44
Show Gist options
  • Save VoloshchenkoAl/fd1512f8762d2fdf5969 to your computer and use it in GitHub Desktop.
Save VoloshchenkoAl/fd1512f8762d2fdf5969 to your computer and use it in GitHub Desktop.
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