IHYPRESS PROGRAMMING
Tutorials and JavaScript programs with code and output for beginners
c programming
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
JavaScript ❯ If Statement
<03>
<html> <body> <script> var currentTime = new Date(); var hour = currentTime.getHours(); if (hour < 12) { document.write ("Good Morning!"); } else if (hour < 18) { document.write ("Good Afternoon!"); } else { document.write ("Good Evening!"); } </script> </body></html>
Hergestellt in Deutschland / Made in Germany
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland