#IT-6303
Awesome StudentQuestion • Web Systems Technologies

What is the result of the script below? <script> var greeting; var time = 10; if (time < 10) { greeting = "Good morning"; } else if (time < 20) { greeting = "Good day"; } else { greeting = "Good evening"; } documentwrite(greeting); </script>

Answer

Good day