Conversation
Deploying utcode-learn with
|
| Latest commit: |
a0b2f83
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8c244d7f.utcode-learn.pages.dev |
| Branch Preview URL: | https://add-evaluation-diagram.utcode-learn.pages.dev |
09adbf0 to
67d0e87
Compare
67d0e87 to
ac7724e
Compare
| - JavaScript で、数値と論理値に比較<Term>演算子</Term>を適用すると、`true`は`1`として、`false`は`0`として比較されます。 | ||
| - `=`は代入演算子です。代入<Term>演算子</Term>の<Term>式</Term>が<Term>評価</Term>されると、右辺の<Term>値</Term>になります。 | ||
|
|
| - `=`は代入演算子です。代入<Term>演算子</Term>の<Term>式</Term>が<Term>評価</Term>されると、右辺の<Term>値</Term>になります。 | ||
| <Answer> | ||
|
|
||
| `<`の結合規則は左から右なので、`takaoHeight < everestHeight < fujiHeight`は`(takaoHeight < everestHeight) < fujiHeight`と解釈されることになります。 |
There was a problem hiding this comment.
この文言と同様に書きました cf.
| <Answer> | ||
|
|
||
| `<`の結合規則は左から右なので、`takaoHeight < everestHeight < fujiHeight`は`(takaoHeight < everestHeight) < fujiHeight`と解釈されることになります。 | ||
| まず`takaoHeight < everestHeight`が<Term>評価</Term>され、`true`になります。次に`true < fujiHeight`が<Term>評価</Term>されます。`true`は`1`として比較されるため、結果は`true`になります。 | ||
|
|
||
|  | ||
|
|
||
| `takaoHeight = everestHeight`の評価結果は、右辺の評価結果である`8849`になります。 | ||
|
|
||
| </Answer> |
There was a problem hiding this comment.
解答および解説がなかったため、解説の図を追加するのに伴い、簡単に解説を書きました。
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
Pull request overview
評価の流れ(演算子の優先順位・結合規則)を学ぶ章に、式の評価順序を視覚化する図を追加し、比較の例に不足していた解説(Answer)を補うPRです。
Changes:
3 + 4 * 5の評価順序を示す図を追加- 文字列結合を含む
+の結合規則の評価図を追加 takaoHeight < everestHeight < fujiHeightの評価過程を<Answer>と図で解説
Reviewed changes
Copilot reviewed 2 out of 6 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/1-trial-session/07-boolean/index.mdx | 比較の「不思議な比較」例に解説文とAnswer/図を追加 |
| docs/1-trial-session/05-expressions/index.mdx | 優先順位・結合規則の説明に評価図を追加 |
| docs/1-trial-session/05-expressions/operator-priority-evaluation.png | 演算子優先順位の評価図(PNG)を追加 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 7 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
評価の流れに関する図を追加しました。
比較の評価に関する例には、解説が書かれていなかったため、解説の図を追加するのに伴い、簡単に解説も追加しました。