Has anyone solve this?

Okay, so i tried this for the challenge of ''Introducing Else Statements and it didn’t work, i tried the Hint but they did the same thing and it didn’t work for them either.

var result = “”;
// Only change code below this line
  
  if (val > 5) {
    result = "Bigger than 5";
  } 
  
  else (val <= 5) {
    result = "5 or smaller";
  }
  
  // Only change code above this line
  return result;
}

// Change this value to test
testElse(5);```

**Link to the challenge:**
https://www.freecodecamp.org/challenges/introducing-else-statements

You have two issues with your code.

#1) The first line (shown below) is using the wrong kind of quotes. You need to either use double quotes " or single quotes '.

var result = “”;

#2) An else statement does not have anything between the else and the {

Thank you! I fixed the issues you mentioned, but still it won’t let me finish the challenge.
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(5);

BTW, i’m using the “” right quotes, but it doesn’t show in the answer correctly

The test is expecting “5 or Smaller”.

You accidentally change the case of one of the words in the following string assignment.

result = "5 or smaller";

Thank you! I didn’t notice

It worked! Thanks, finally :grinning: