Need help,thank you so much,the result returns to true


#1

01 var year;
02 var yearNot2015Or2016;
03
04 year = 2000;
05
06 yearNot2015Or2016 = year !== 2015 || year !== 2016;
07
08 console.log(yearNot2015Or2016);


#2

Yeah it does return true since year is not 2015 or 2000. What exactly is your problem @yuin_hsin?


#3

Thats fine,I have solved it.
01 var year;
02 var yearNot2015Or2016;
03
04 year = 2000;
05
06 yearNot2015Or2016 = year !== 2015 && year !== 2016;
07
08 console.log(yearNot2015Or2016);


#4

Ok Good to know you solved it