function min (a, b, c) { if (a < b) { return (a < c) ? a : c; } else { return (b < c) ? b : c; } } console.log(min(7,5,-1));