-
Notifications
You must be signed in to change notification settings - Fork 0
Lesson 1-3 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Lesson 1-3 #1
Conversation
| for(let i = Number(a); i <= 15; i++) { | ||
| console.log(i); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
задача была только средствами свиты/кейс, цикл не трогаем
| return a + b; | ||
| break; | ||
|
|
||
| case "-": | ||
| return a - b; | ||
| break; | ||
|
|
||
| case "*": | ||
| return a * b | ||
| break; | ||
|
|
||
| case "/": | ||
| return a / b; | ||
| break; | ||
|
|
||
| default: | ||
| alert("Допускаемые операции (+, -, *, /).") | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
забыли про функции из задания выше
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
break при наличии return не нужен
| for (let i = 0; i < cart.length; i++) { | ||
| sum += Number(cart[i][2]) * Number(cart[i][1]); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
нужно было написать функцию
No description provided.