Professional Documents
Culture Documents
Write JavaScript code that asks the user to insert the temperature for the next three
days. Then Check the value of temperature. If it’s less than 15° then you must
display that the temperature is LOW (in blue color) and if it’s over 25° then its
High(in Red color) temperature, otherwise the temperature is NORMAL(in Green
color).
If the user inserts a value which isn’t a number display an alert message to tell to re-
insert the value.
Use <h1> tag to display results.
insert prompt:
alert:
Result example: