Error at Introducing Else Statements

Tell us what’s happening:
Hi, I am doing the task and it comes with an error all the time.

Your code so far
I have tried the e hints and the solution and other people solutions but still the same error. please could you check it out to see if there is a bug on that task?


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

// Change this value to test
testElse(4);

Your browser information:

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

Challenge: Introducing Else Statements

Link to the challenge:

Hi @pabs0coder!

Welcome to the forum!

The s in smaller needs to be capitalized.

1 Like

Hi!!
Many thanks for your help. I was very frustrated and I did not see the error.

regards,
Pablo

1 Like