回答編集履歴
6
modify
test
CHANGED
@@ -180,7 +180,7 @@
|
|
180
180
|
|
181
181
|
/*
|
182
182
|
|
183
|
-
* When bb is
|
183
|
+
* When bb is true AND b <= c, return true. otherwise return false
|
184
184
|
|
185
185
|
*/
|
186
186
|
|
5
modify
test
CHANGED
@@ -102,7 +102,7 @@
|
|
102
102
|
|
103
103
|
|
104
104
|
|
105
|
-
// console.log("
|
105
|
+
// console.log("An error has occurred. " + e);
|
106
106
|
|
107
107
|
// return false; // to exit jQuery.each() loop.
|
108
108
|
|
4
modify
test
CHANGED
@@ -84,6 +84,8 @@
|
|
84
84
|
|
85
85
|
|
86
86
|
|
87
|
+
// other case as Unexpected conditions.
|
88
|
+
|
87
89
|
default:
|
88
90
|
|
89
91
|
throw 'Unknown Case';
|
3
modify
test
CHANGED
@@ -34,7 +34,7 @@
|
|
34
34
|
|
35
35
|
{
|
36
36
|
|
37
|
-
// When aa isn't true
|
37
|
+
// When aa isn't true AND aaa isn't much "hoge", throw 'Illegal Case'
|
38
38
|
|
39
39
|
if(!isRegular(aa, aaa)) { throw 'Illegal Case'; }
|
40
40
|
|
2
modify
test
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
You should use 'guard' solution. That is the way to reach the world of freaking geeks!
|
2
|
+
|
3
|
+
|
4
|
+
|
1
5
|
```Javascript
|
2
6
|
|
3
7
|
/*************************************************************
|
1
modify
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
{
|
32
32
|
|
33
|
-
// When aa isn't and aaa isn't much "hoge", throw 'Illegal Case'
|
33
|
+
// When aa isn't true and aaa isn't much "hoge", throw 'Illegal Case'
|
34
34
|
|
35
35
|
if(!isRegular(aa, aaa)) { throw 'Illegal Case'; }
|
36
36
|
|