Skip to content

Commit a0b2f83

Browse files
committed
代入演算子の評価の流れに関する図を追加
1 parent ac7724e commit a0b2f83

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed
165 KB
Loading

docs/1-trial-session/07-boolean/weird-comparison-evaluation.png renamed to docs/1-trial-session/07-boolean/chained-comparison-evaluation.png

File renamed without changes.

docs/1-trial-session/07-boolean/index.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,12 @@ document.write(takaoHeight = everestHeight);
102102
`<`の結合規則は左から右なので、`takaoHeight < everestHeight < fujiHeight``(takaoHeight < everestHeight) < fujiHeight`と解釈されることになります。
103103
まず`takaoHeight < everestHeight`が<Term>評価</Term>され、`true`になります。次に`true < fujiHeight`が<Term>評価</Term>されます。`true``1`として比較されるため、結果は`true`になります。
104104

105-
![takaoHeight < everestHeight < fujiHeightの評価](./weird-comparison-evaluation.png)
105+
![takaoHeight < everestHeight < fujiHeightの評価](./chained-comparison-evaluation.png)
106106

107107
`takaoHeight = everestHeight`の評価結果は、右辺の評価結果である`8849`になります。
108108

109+
![takaoHeight = everestHeightの評価](./assignment-operator-evaluation.png)
110+
109111
</Answer>
110112

111113
:::

0 commit comments

Comments
 (0)