0

How to change the text according to the current time

I have a website and I want to make a welcome by displaying (good morning) (good afternoon) and something like that what is the code for that

10th Dec 2019, 7:43 PM
Eyad Farah
Eyad Farah - avatar
3 Respuestas
0
https://www.w3schools.com/js/js_date_methods.asp Put the getHours() in a ternary.
10th Dec 2019, 7:51 PM
rodwynnejones
rodwynnejones - avatar
0
Wwe
30th May 2020, 1:31 AM
Dale Paul
0
Wwe
30th May 2020, 1:31 AM
Dale Paul