+ 2
Why the things are not changing [Solved]
2 Answers
+ 5
I see that you have done comparison in the form of a < b < c. In JavaScript, you need to do a < b && b < c because a < b will return either true or false, and then youâre basically comparing true or false with a number. So, for the morning if statement, you should put:
if(3 < hours && hours < 12)
+ 1
Rowsej Thank you