回答編集履歴
1
ソース修正
answer
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
var object = {};
|
4
4
|
|
5
5
|
function myReturn(num, def = 8) {
|
6
|
-
if (num === undefined) num = def;
|
6
|
+
if (num === undefined || num === null) num = def;
|
7
7
|
object.number = num;
|
8
8
|
return object.number;
|
9
9
|
}
|