Outside the function block

Tell us what’s happening:
I have been going back and forth on this question to understand FCC exercise syntax. I have added comments to the exercise to show my current understanding. Am I on the right track.
Sorry to be taking up so much of your time but I need to be clear to move forward.

Your code so far


function testGreaterThan(val) {
if (val >100) {  // Change this line
  return "Over 100";//Inside the function block, returns if true.
}

if (val > 10) {  // Change this line
  return "Over 10";//second condition,new question.
}

return "10 or Under";//? Is this considered outside the function block??
}

testGreaterThan(2578);// I changed the 10 it still works, get a tick.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36.

Challenge: Comparison with the Greater Than Operator

Link to the challenge:

A post was merged into an existing topic: Please make sense of this