Else statements java script


#1

I dont know how to pass this challenge with the else statements. This is my code here. Its not letting me pass because it says that my numbers below five need to have a result of smaller than 5. But Javascript says I’ve already done that. Heres a link to my page, https://www.freecodecamp.org/challenges/introducing-else-statements
and heres the code written down:

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);


#2

The word smaller needs to be upper case as Smaller and you’ll likely need to replace all of your curly quotes “ ” with straight quotes " "

Once I make those two changes, the challenge passes for me.


#3

Thank you so much! The little things always mess me up lol