質問編集履歴
3
タイトル修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
javascript
|
1
|
+
javascript 条件分岐のアルゴリズム
|
body
CHANGED
File without changes
|
2
内容修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -28,9 +28,9 @@
|
|
28
28
|
if (a && b) {
|
29
29
|
console.log(a + " - " + b)
|
30
30
|
} else if (a) {
|
31
|
-
console.log(a + " -
|
31
|
+
console.log(a + " -")
|
32
32
|
} else if (b) {
|
33
|
-
console.log("
|
33
|
+
console.log("- " + b)
|
34
34
|
} else {
|
35
35
|
console.log("")
|
36
36
|
}
|
1
内容修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -26,11 +26,11 @@
|
|
26
26
|
実装例
|
27
27
|
```typescript
|
28
28
|
if (a && b) {
|
29
|
-
console.log(a + "-" + b)
|
29
|
+
console.log(a + " - " + b)
|
30
30
|
} else if (a) {
|
31
|
-
console.log(a + "-")
|
31
|
+
console.log(a + " - ")
|
32
32
|
} else if (b) {
|
33
|
-
console.log("-" + b)
|
33
|
+
console.log(" - " + b)
|
34
34
|
} else {
|
35
35
|
console.log("")
|
36
36
|
}
|