Funciones e if / else : ¿Alguien ve el error? ¡Ayuda! D:


#1


#2

Hi this part

if ("cantHoras" >= 8 )

you should remove the " " around cantHoras . because with the " " around its make cantHoras a string but you want to use the argument of the function controlDescanso() so you should remove them.