回答編集履歴
6
modify
answer
CHANGED
@@ -89,7 +89,7 @@
|
|
89
89
|
}
|
90
90
|
|
91
91
|
/*
|
92
|
-
* When bb
|
92
|
+
* When bb is true AND b <= c, return true. otherwise return false
|
93
93
|
*/
|
94
94
|
function canProcess2(bb, b, c)
|
95
95
|
{
|
5
modify
answer
CHANGED
@@ -50,7 +50,7 @@
|
|
50
50
|
{
|
51
51
|
// UnExpected processing.
|
52
52
|
|
53
|
-
// console.log("
|
53
|
+
// console.log("An error has occurred. " + e);
|
54
54
|
// return false; // to exit jQuery.each() loop.
|
55
55
|
}
|
56
56
|
|
4
modify
answer
CHANGED
@@ -41,6 +41,7 @@
|
|
41
41
|
|
42
42
|
break;
|
43
43
|
|
44
|
+
// other case as Unexpected conditions.
|
44
45
|
default:
|
45
46
|
throw 'Unknown Case';
|
46
47
|
}
|
3
modify
answer
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
try
|
18
18
|
{
|
19
|
-
// When aa isn't true
|
19
|
+
// When aa isn't true AND aaa isn't much "hoge", throw 'Illegal Case'
|
20
20
|
if(!isRegular(aa, aaa)) { throw 'Illegal Case'; }
|
21
21
|
|
22
22
|
// get a CASE CODE depending on conditions
|
2
modify
answer
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
You should use 'guard' solution. That is the way to reach the world of freaking geeks!
|
2
|
+
|
1
3
|
```Javascript
|
2
4
|
/*************************************************************
|
3
5
|
*
|
1
modify
answer
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
try
|
16
16
|
{
|
17
|
-
// When aa isn't and aaa isn't much "hoge", throw 'Illegal Case'
|
17
|
+
// When aa isn't true and aaa isn't much "hoge", throw 'Illegal Case'
|
18
18
|
if(!isRegular(aa, aaa)) { throw 'Illegal Case'; }
|
19
19
|
|
20
20
|
// get a CASE CODE depending on conditions
|