Introdudcing if else statements / incorrect output

Hello, this lesson is not producing the correct result. Thank you for your input.

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;

}

testElse(4);

The test results does notr produce the expected result. There is already a post about this issue from 2016 ( freeCodeCamp Challenge Guide: Introducing Else Statements ).

No replies. May I get some help?

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Your string does not have correct capitalization.