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: