Introduce of else statement

could some one tell me what is missing in my code? thanks

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;


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0.1 Safari/604.3.5.

Challenge: Introducing Else Statements

Link to the challenge:

There is a typo.

The original problem used a capital S

1 Like