File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Prepare two implementations of `inc` function:
14
14
call example: ` let a = 5; const b = inc(a); console.dir({ a, b }); `
15
15
2 . Second with signature ` inc(num: Num) ` where ` Num ` is object with field ` n ` ,
16
16
so function will change field of the object passed by reference,
17
- call example: ` let obj = { n: 5} ; inc(obj); console.dir(obj); `
17
+ call example: ` let obj = { n: 5 } ; inc(obj); console.dir(obj); `
18
18
19
19
## Types
20
20
Original file line number Diff line number Diff line change 14
14
пример вызова: ` let a = 5; const b = inc(a); console.dir({ a, b }); `
15
15
2 . C сигнатурой ` inc(num: Num) ` , где ` Num ` является объектом с полем ` n ` ,
16
16
чтобы функция изменила поле исходного объекта переданного по ссылке,
17
- пример вызова ` let obj = { n: 5} ; inc(obj); console.dir(obj); `
17
+ пример вызова ` let obj = { n: 5 } ; inc(obj); console.dir(obj); `
18
18
19
19
## Типы объектов
20
20
You can’t perform that action at this time.
0 commit comments