Change background according to the temperature[HELP]

Hi,

I tried to use ‘’ if ‘’ to change the background but for some reason it is not working out, someone could help me please?

Oh, I think the problem is celsius being a string, I will try to figure that out

Thanks.

Your condition fails if celsius === 0 || celsius === 20.

1 Like