13_1.3.4 WebTech – JavaScript 2

A website contains the following HTML:

The code between the script tags is supposed to display a different message during the shop’s opening hours of 09:00 and 17:00. However, some users have reported that there is a bug and the site says the shop is closed when they log on between 9 and 10 in the morning.

Explain how this bug can be fixed.

×