Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

「コードでの意思決定 — 条件文 > アクティブラーニング: 単純なカレンダー」 の更新 #751

Open
ulxsth opened this issue Apr 5, 2024 · 0 comments
Labels

Comments

@ulxsth
Copy link

ulxsth commented Apr 5, 2024

更新対象ページ (日本語 URL)

https://developer.mozilla.org/ja/docs/Learn/JavaScript/Building_blocks/conditionals#%E3%82%A2%E3%82%AF%E3%83%86%E3%82%A3%E3%83%96%E3%83%A9%E3%83%BC%E3%83%8B%E3%83%B3%E3%82%B0_%E5%8D%98%E7%B4%94%E3%81%AA%E3%82%AB%E3%83%AC%E3%83%B3%E3%83%80%E3%83%BC

更新内容・備考・ヘルプ

当セクションではchoiceに1-12までの整数が格納されるようになっています。

これは choice 変数に格納されています。この値は <select> 要素で選択された後の値で、例えば 1 月なら、"1" といった値です。

しかし、choiceに値を渡す select の各 option.value には、1 月のような単位付きの文字列が与えられています。
そのため、問題文中の指示のみではユーザーが答えにたどり着けません。

<select id="month">
  <option value="1 月">1 月</option>
  <option value="2 月">2 月</option>
  <option value="3 月">3 月</option>
  ...
</select>

これを修正するため、valueの値を単位なしの値(ex. "1")に変更して欲しいです。

@ulxsth ulxsth added the MDN label Apr 5, 2024
@ulxsth ulxsth changed the title コードでの意思決定 — 条件文 > アクティブラーニング: 単純なカレンダー> の更新 「コードでの意思決定 — 条件文 > アクティブラーニング: 単純なカレンダー」 の更新 Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant