Help!!!
I’m trying to change my background color using IF statement, however it always return false when the comparison are basically between “Clouds” == “cloud” which supposedly return true right?
Please help, i have struggled for a couple of hours with this.
Thank you guys!
if (data.weather[0].main == 'cloud') {
$('body').css('background-color', 'red');
} else {
$('body').css('background-color', 'black');
}