We also need to update lightsOn, of course. Let's put the negation operator to good use.
lightsOn
Set lightsOn to the opposite of isDay.
isDay
Make sure your code reads var lightsOn = !isDay;.
var lightsOn = !isDay;