You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/04-object-basics/01-object/5-sum-object/task.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@ importance: 5
2
2
3
3
---
4
4
5
-
# Sum object properties
5
+
# Сумма свойств объекта
6
6
7
-
We have an object storing salaries of our team:
7
+
У нас есть объект, в котором хранятся зарплаты нашей команды:
8
8
9
9
```js
10
10
let salaries = {
@@ -14,6 +14,4 @@ let salaries = {
14
14
}
15
15
```
16
16
17
-
Write the code to sum all salaries and store in the variable `sum`. Should be `390` in the example above.
18
-
19
-
If `salaries` is empty, then the result must be `0`.
17
+
Напишите код для суммирования всех зарплат и сохраните результат в переменной `sum`. Должно получится `390`. Если объект `salaries` пуст, то результат должен быть `0`.
0 commit comments