質問編集履歴
1
説明不足でした。
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,11 +10,11 @@
|
|
10
10
|
const
|
11
11
|
increase: Func =
|
12
12
|
({num}) =>
|
13
|
-
++num,
|
13
|
+
++num, // ここに赤い波線が表示されます。
|
14
14
|
|
15
15
|
decrease: Func =
|
16
16
|
({num}) =>
|
17
|
-
--num;
|
17
|
+
--num; // ここに赤い波線が表示されます。
|
18
18
|
|
19
19
|
console.log( increase({num: 2}) ); // 3
|
20
20
|
console.log( decrease({num: 2}) ); // 1
|