Basic JavaScript - Introducing Else Statements

Tell us what’s happening:

It seems as though my code is correct based off of the example to the left of the editor, as well as the video linked to the challenge.

I even searched, but it seems like the main issue is that when I click “Run the Tests” button, nothing happens. The Console is still showing up “Your test output will go here”, not even changing to display errors.

I would appreciate the help! Thanks!

Your code so far

function testElse(val) {
  let 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/ Safari/537.36

Challenge: Basic JavaScript - Introducing Else Statements

Link to the challenge:

1 Like

works fine here. try another browser or deleting cache or pause browser extensions or something

I cleared cache and it worked! Thanks for the help.

1 Like

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