techbantu even shorter ;-)
{
if (a < b && c) return a;
else if (b < a && c) return b;
else return c;
}
@Coderslang_Master What I didn't understand is what is the $ sign good for in the solution.js file?
console.log(The minimum is ${min(a, b, c)}
);
And one more thing: With my proposed solution described above, I get the right outcome every time I run the code, but when I submit it, the following step gets marked as incorrect. What's wrong?
- The min function should return the minimum of 3 numbers