Que esta mal en este codigo ¿

Cuéntanos qué está pasando:
Describe tu problema en detalle aquí.

   **Tu código hasta el momento**

function testSize(num) {
 // Cambia solo el código debajo de esta línea
if ( num < 5){
  return "tiny";
} else if (num < 10){
  return "Small";
} else if(num < 15){
  return "Medium";
} else if (num < 20){
  return "Large";
} else {
  
  return "Huge";

}

}

 // Cambia solo el código encima de esta línea
}

testSize(7);
   **Información de tu navegador:**

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36

Desafío: Encadena sentencias if else

Enlaza al desafío:

This one got me puzzled. It runs fine for me on VS code but fails on FCC… still trying to work it out for you.

Got it!
You have a typo…
the word to be return is “Tiny”… not “tiny”
=)

1 Like

still correcting the typo does not work

Las instrucciones dicen:

num >= 20 - devuelve Huge.

En tu codigo lo escribiste algo diferente.