Questions is to use Switch instead of If/else statments: function isLess(a, b) {
** // Fix this code**
** if (a < b) {**
** return true;**
** } else {**
** return false;**
** }** }
The switch statement can only test ONE variable for a certain value.
For example an integer for the values 1, 2 ,3, etc.
I would suggest using a boolean variable, true for less and false for equal or more.
switch(a<b){ case true: return true; break; default: return false;