- script.js
JavaScript
var temperature = 20;
var isRaining = true;
var minutes = 0;
/*
Meow! The length of the walk depends on several conditions.
If it’s raining, I do not go for a walk. In this case, the duration of the walk equals 0. But if there is no rain, it all depends on the temperature outside:
First, if the temperature ranges from 10°C (inclusive) to 15°C (not including this value), I walk for 30 minutes.
Second, if the temperature ranges from 15°C (inclusive) to 25°C (not including this value), I walk for 40 minutes.
Third, if the temperature ranges from 25°C (inclusive) to 35°C (inclusive), I walk for 20 minutes.
In other cases, I do not go out anywhere: it’s either very cold or very hot.
The result of the program is the time of the walk. It must be written into the variable minutes.
*/