|
I'm trying to learn to hand code javascript based on tutorals and page sources and nowhere as easy as html. What I want to do is have a heading read different text based on the time of day and I'm about to give up due to pure fustration. I have no idea how to start my code since everything I've tried doesn't work. Also can you check my "if command" code below for errors? It should also give you an idea of what I'm trying to do.
if(hours<=5 && >=11){ document.write("Good Morning!") }
if(hours<=12 && >=16) { document.write("Good Afternoon!") }
|