min(a,b) and max(a,b) without ‘if statement’ in javascript
function min(a,b) {return a<b&&a||b;} function max(a,b) {return a>b&&a||b;}