Lodash project - STEP 9

I’m working on this project and I continue to get an error when I attempt to test my code.
I compared my answer to the solution and everything looks right, I’m not sure what I did wrong.

Can someone help me find the error?

Thank you

inRange(number, start, end){
  if(end === undefined){
    end = start
    start = 0
    if(start > end){
      var temp = end
      end = start
      start = temp
    var isInRange = start <= number && number < end
  return isInRange;


$ node test/in-range.js
_.inRange() Tests:
1 - _.inRange() is defined - Failed: _.inRange() was not properly defined.
Terminating tests...

Here is the link to the project project

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.