Problem with the wesite

Tell us what’s happening:
Describe your issue in detail here.

it’s showing this error

You should not change the code above or below the specified comments.

I tried testing and running the code without editing anything… it’s still showing the same error…

  **Your code so far**

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;
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36

Challenge: Introducing Else Statements

Link to the challenge:

Hi @smitjiwani44 !

Welcome to the forum!

The problem is here

When I reset the lesson it is supposed to be using let not var

let result = "";

When I fix that it passes

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