JSFiddle - React, Tailwind, and code Playground
by Mike Rispoli
JavaScript
// Your code here.
// Functions chapter eloquent js problem 1
function min(arg1, arg2) {
if (arg1 >= arg2) {
return arg2;
} else {
return arg1;
}
}
console.log(min(0, 10));
// → 0
console.log(min(0, -10));
// → -10