Introducing Else Statements Problem

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

// running tests
You should not change the code above or below the specified comments.
// tests completed

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.