Where in thus case im wrong

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 if (num >= 20){
return "Huge";
}

console.log(testSize(25));

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

testSize(25)

// where I’m wrong?

   **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/93.0.4577.82 Safari/537.36 Edg/93.0.961.52

Desafío: Encadena sentencias if else

Enlaza al desafío:

The capitalization must match exactly.

I already fixed but still wrong.

If you have changed your code, we need to see the new code to be able to help.

It does look like you prematurely closed your function though…

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 if (num >= 20){

return “Huge”;

}

console.log(testSize(25));

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

testSize(25)

1

2

3

19

20

12

5

8

9

6

15

11

14

17

18

7

10

13

16

4

21

function testSize(num) {

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

}

console.log(testSize(25));

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

}

return “Tiny”

return “Small”

}

}

}

return “Medium”

return “Large”

return “Huge”

}

else if (num < 10){

else if (num < 15){

else if (num < 20){

else if (num >= 20){

if (num < 5){

testSize(25)

SyntaxError: unknown: ‘return’ outside of function. (5:0) 3 | } 4 | if (num < 5){ > 5 | return “Tiny” | ^ 6 | } 7 | else if (num < 10){ 8 | return “Small”

See what I said above.

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"

}

}

return “Change Me”;

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

}

testSize(7);
// I got it!!!