回答編集履歴

1

ソース修正

2016/06/13 02:22

投稿

hidekichi
hidekichi

スコア366

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