Skip to content

Conversation

@AlexPL2201
Copy link
Owner

No description provided.

Comment on lines +4 to +6
for(let i = Number(a); i <= 15; i++) {
console.log(i);
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

задача была только средствами свиты/кейс, цикл не трогаем

Comment on lines +4 to +21
return a + b;
break;

case "-":
return a - b;
break;

case "*":
return a * b
break;

case "/":
return a / b;
break;

default:
alert("Допускаемые операции (+, -, *, /).")
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

забыли про функции из задания выше

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

break при наличии return не нужен

Comment on lines +14 to +16
for (let i = 0; i < cart.length; i++) {
sum += Number(cart[i][2]) * Number(cart[i][1]);
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нужно было написать функцию

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants