I am trying to make an easy if- else statement in javascript that displays different greetings depending on the time. I can not see what I have done wrong, but only the else-statement shows, no matter what time it is. Please help!
(Here is my script. And I live in Sweden where we have 24 hour clock so that is why it is 20 and so fourth)
(Here is my script. And I live in Sweden where we have 24 hour clock so that is why it is 20 and so fourth)