Skip to content

JavaScript1章: プリミティブ型・オブジェクト型のコード例追加と練習問題の簡素化#207

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/update-javascript-chapter-1-explanations
Draft

JavaScript1章: プリミティブ型・オブジェクト型のコード例追加と練習問題の簡素化#207
Copilot wants to merge 2 commits intomainfrom
copilot/update-javascript-chapter-1-explanations

Conversation

Copy link
Contributor

Copilot AI commented Mar 21, 2026

Chapter 1の説明が不足しており、練習問題で未解説の演算子(||??...)を使わせていた問題を修正。

変更内容

  • 2-0-primitive-type.md: 各プリミティブ型のコード例を追加。特にテンプレートリテラルの ${} 構文を明示(練習問題で使用するため必須)。Number の IEEE 754 挙動、BigInt の n サフィックスも例示。

  • 3-0-object.md: Object・Array のリテラル記法とプロパティアクセスのコード例を追加。詳細は5章・7章で扱う旨を明記。

  • 6-1-practice1.md: ||?? を使う条件分岐ありの問題から、テンプレートリテラルのみで完結するフォーマット問題に変更(Python/Ruby1章と同水準)。

    // itemName, price, stock を代入し、テンプレートリテラルで整形するだけ
    // 例: 商品: 高性能マウス, 価格: 4500円, 在庫: 2個
  • 6-2-practice2.md: 7章で扱うスプレッド構文 ... を必要とする問題を削除。const オブジェクトのプロパティ変更・追加を確認する問題に置き換え(3-1-const-object.md の内容を実践)。

Original prompt

This section details on the original issue you should resolve

<issue_title>JavaScript1章が説明不足すぎる</issue_title>
<issue_description>* 各プリミティブ型の説明や例が不足している。特にテンプレートリテラルは練習問題で書かされるのにコード例がない。

  • ObjectとArrayもコード例がない。
    • Objectは5章に、Arrayは7章にある。あとの章で詳しく説明します、とか書いておけばいいか?
  • 練習問題で、説明していない 論理和演算子 || 、 Null合体演算子 ?? 、スプレッド構文 ... を使うことを要求している。
    • Python1章やRuby1章と同じように、条件分岐のいらない練習問題にするべき
    • ||, &&, ?? は1章のどこかで説明すべきな気がする
      • これは1章ではなく、3項演算子やオプショナルチェーンとかとあわせて新しい章にしたほうがいい</issue_description>

<agent_instructions>public/docs/javascript/1-basics/ 以下のmdファイルの内容を修正してください。必要であればファイルを追加・削除しても構いません。見出しを追加する場合は、必ず1つのmdファイル内に見出しが1つのみになるようファイルを追加・削除してください。</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ut-code/my-code/sessions/56c810b0-44e8-4be4-a188-42cf1404ae6b
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 21, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
my-code 846a889 Commit Preview URL

Branch Preview URL
Mar 21 2026, 02:06 PM

Copilot AI changed the title [WIP] Update explanations and examples for JavaScript Chapter 1 JavaScript1章: プリミティブ型・オブジェクト型のコード例追加と練習問題の簡素化 Mar 21, 2026
Copilot AI requested a review from na-trium-144 March 21, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JavaScript1章が説明不足すぎる

2 participants