Introducing Else statement

Tell us what’s happening:

Kinda stack here, what could be wrong?

Your code so far

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

 if (val > 5) {
   result = "Bigger than 5";

result = "5 or smaller";}

// Only change code above this line

return result;

// Change this value to test



Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36.

Challenge: Introducing Else Statements

Link to the challenge:

I believe that you have a typo

1 Like

you typed esle instead of else

1 Like