I am facing problem with my question below which restricted us to use Math.Min() function to obtain answer. I tried multiple ways but never seems to get the answer right.
Minimum of two numbers Let's pretend the JavaScript Math.min() function doesn't exist. Complete the following program so that the min() function returns the minimum of its two received numbers.
// TODO: write the min() function
console.log(min(4.5, 5)); // Must show 4.5
console.log(min(19, 9)); // Must show 9
console.log(min(1, 1)); // Must show 1