Basic JavaScript: Introducing Else Statements need help with few checkpoints

Tell us what’s happening:

I need help with the following checkpoints testElse(4), should return “5 or Smaller” and testElse(5) should return “5 or Smaller”. And I would also like an explanation about this code because I’m not totally sure about it.

Your code so far


function testElse(val) {
var result = "";
// Only change code below this line

if (val > 5) {
  result = "Bigger than 5";
} else {
  result = "5 or smaller";
}

// Only change code above this line
return result;
}

testElse(4);

Your browser information:

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

Challenge: Introducing Else Statements

Link to the challenge:

I capitalized s in small, and changed “e” to “a” in “than”, and that fixed the issue.