回答編集履歴
1
ソース修正
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
function myReturn(num, def = 8) {
|
10
10
|
|
11
|
-
if (num === undefined) num = def;
|
11
|
+
if (num === undefined || num === null) num = def;
|
12
12
|
|
13
13
|
object.number = num;
|
14
14
|
|