Hi there,
am I doing something wrong with the if-statement? it either doesn't evaluate the conditions I've got in there or throw an error.
$('button').click(function(){
var button = $($(this)).text();
console.log(button); // this logs the value of button as night or day depending on the button I click
if(button == 'day'){
$('p').text(button);
}else if(button == "night"){
$('p').text(button);
}