Skip to content

Commit 8e438f4

Browse files
committed
task 8 translated
1 parent 07b2743 commit 8e438f4

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

1-js/04-object-basics/01-object/8-multiply-numeric/_js.view/source.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let menu = {
77

88
function multiplyNumeric(obj) {
99

10-
/* your code */
10+
/* ваш код */
1111

1212
}
1313

1-js/04-object-basics/01-object/8-multiply-numeric/_js.view/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
describe("multiplyNumeric", function() {
2-
it("multiplies all numeric properties by 2", function() {
2+
it("умножаем все числовые свойства на 2", function() {
33
let menu = {
44
width: 200,
55
height: 300,

1-js/04-object-basics/01-object/8-multiply-numeric/task.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ importance: 3
22

33
---
44

5-
# Multiply numeric properties by 2
5+
# Умножаем все числовые свойства на 2
66

7-
Create a function `multiplyNumeric(obj)` that multiplies all numeric properties of `obj` by `2`.
7+
Создайте функцию `multiplyNumeric(obj)`, которая умножает все числовые свойства объекта `obj` на `2`.
88

9-
For instance:
9+
Например:
1010

1111
```js
12-
// before the call
12+
// до вызова функции
1313
let menu = {
1414
width: 200,
1515
height: 300,
@@ -18,16 +18,15 @@ let menu = {
1818

1919
multiplyNumeric(menu);
2020

21-
// after the call
21+
// после вызова функции
2222
menu = {
2323
width: 400,
2424
height: 600,
2525
title: "My menu"
2626
};
2727
```
2828

29-
Please note that `multiplyNumeric` does not need to return anything. It should modify the object in-place.
30-
31-
P.S. Use `typeof` to check for a number here.
29+
Обратите внимание, что `multiplyNumeric` не нужно ничего возвращать. Следует напрямую изменять объект.
3230

31+
P.S. Используйте `typeof` для проверки, что значение свойства числовое.
3332

0 commit comments

Comments
 (0)