I put that answer in there and got it right, but I thought I was taking a shortcut by not using ===.
If “return a < b;” is correct I feel the question is misleading. Why go on about comparisons and have a link to the earlier question: “Comparison with the Equality Operator”?
I was trying to use the switch function, but switch (a < b) doesn’t work. Indeed this is a much more simple answer, just wish I would have found out by myself!