Can someone help me in this?

Tell us what’s happening:

How do I solve this problem?

Your code so far

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);

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36.

Link to the challenge:

Still can’t do it? Tried many times but i am getting stuck.

1 Like

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(4);

1 Like

its done now… Thanks
I solved it

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);