it says syntax error in inRange (ignore clamp)

```
const _ = {
clamp(number, lower, higher) {
var num = Math.max(number,lower);
var hnum = Math.min(num, higher);
return hnum;
}
inRange(number, start, end){
if (end === undefined) {
end = start;
start = 0;
temp === end;
} if (end < start) {
var temp = end;
end = start;
start = temp;
};
var isInRange = start <= number && number < end;
return isInRange;
};
};
// Do not write or modify code below this line.
module.exports = _;
```