JSFiddle - React, Tailwind, and code Playground
JavaScript
function max( a, b, c ) {
x=( a > b && a) || b;
return ( x > c && x ) || c;
}
alert( max( 1, -2, 4 ) );
alert( max( -5, 6, 4 ) );
alert( max( -1, -2, -4 ) );
function max( a, b, c ) {
x=( a > b && a) || b;
return ( x > c && x ) || c;
}
alert( max( 1, -2, 4 ) );
alert( max( -5, 6, 4 ) );
alert( max( -1, -2, -4 ) );