I need help with that test

hi, i have a problem… i cant send the test because the step one told me i should have only one if instruction but i have only one. i know the test are correct but i cant send it.


function testElse(val) {
var result = "";
// Modifica il codice solo sotto questa riga

if (val > 5) {
  result = "Bigger than 5";
}else {
  result = "5 or Smaller";
}

// Modifica il codice solo sopra questa riga
return result;
}

testElse(4);
  **Informazioni del tuo browser:**

Lo user agent è: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36

Sfida: Introduzione alle dichiarazioni Else

Link alla sfida:

Purtroppo il test sta individuando il if dentro Modifica, cancella il commento e passerà, il bug è noto e sta venendo sistemato

it worked, thank you!

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