Please can i get help Logical Order in If Else Statements

Tell us what’s happening:

Your code so far

function orderMyLogic(val) {
  if (val < 5) {
    return "Less than 10";
  } else if (val < 10) {
    return "Less than 5";
  } else {
    return "Greater than or equal to 10";
  }
}

function orderMyLogic(val) {
  if (val < 10) {
    return "Less than 10";
  } else if (val < 5) {
    return "Less than 5";
  } else {
    return "Greater than or equal to 10";
  }
}

// Change this value to test

orderMyLogic(7);```
**Your browser information:**

Your Browser User Agent is: ```Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0```.

**Link to the challenge:**
https://www.freecodecamp.org/challenges/logical-order-in-if-else-statements

okay.
should i call with the function in two different ways on just one.
really really confuse;

orderMyLogic(5);
orderMyLogic(7);
<p>  
function orderMyLogic(val) {
  if (val < 5) {
    return "Less than 5";
  } else if (val < 10) {
    return "Less than 10";
  } else {
    return "Greater than or equal to 10";
  }
}
function orderMyLogic(val) {
  if (val < 10) {
    return "Less than 10";
  } else if (val < 5) {
    return "Less than 5";
  } else {
    return "Greater than or equal to 10";
  }
}

// Change this value to test
orderMyLogic(5);
orderMyLogic(7);


requirements
orderMyLogic(4) should return "Less than 5"
orderMyLogic(6) should return "Less than 10"
orderMyLogic(11) should return "Greater than or equal to 10"

  </p>

okay @camperextraordinaire.
Thanks i finally fix it. :slight_smile:
Good to move :raised_hands:

why is this telling me SyntaxError: unterminated regular expression literal

can you show the code