teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

6

modify

2018/04/17 12:11

投稿

退会済みユーザー
answer CHANGED
@@ -89,7 +89,7 @@
89
89
  }
90
90
 
91
91
  /*
92
- * When bb isn true AND b <= c, return true. otherwise return false
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

2018/04/17 12:11

投稿

退会済みユーザー
answer CHANGED
@@ -50,7 +50,7 @@
50
50
  {
51
51
  // UnExpected processing.
52
52
 
53
- // console.log("Un error has occurred. " + e);
53
+ // console.log("An error has occurred. " + e);
54
54
  // return false; // to exit jQuery.each() loop.
55
55
  }
56
56
 

4

modify

2018/04/17 06:19

投稿

退会済みユーザー
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

2018/04/17 04:07

投稿

退会済みユーザー
answer CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  try
18
18
  {
19
- // When aa isn't true and aaa isn't much "hoge", throw 'Illegal Case'
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

2018/04/17 04:04

投稿

退会済みユーザー
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

2018/04/17 03:58

投稿

退会済みユーザー
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