var temperature = 10;
var isRaining = false;
var minutes = 0;
if (isRaining || temperature > 35) {
minutes = 0;
console.log(‘Точно никуда не пойду!’);
} else {
if (temperature >= 10 && temperature < 15 && !isRaining) {
minutes = 30;
console.log(‘я гуляю ‘+ minutes +’ минут’);
}
if (temperature >= 15 && temperature < 25 && !isRaining) {
minutes = 40;
console.log(‘я гуляю ‘+ minutes +’ минут’);
}
if (temperature >= 25 && temperature <= 35 && !isRaining) {
minutes = 20;
console.log('я гуляю '+ minutes +' минут');
}
}