javascript-tutorial / javascript-tutorial/en.javascript.info
Debug code does not match lesson
まだ誰も着手していません。
- 主要言語
- HTML
- スター
- 25.5k
- フォーク
- 4k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Code Quality - 1. Debugging in the Browser, example page
The code shown in the sources panel is currently condensed to only two lines:
function hello(name){let phrase=`Hello, ${name}!`;say(phrase);}
function say(phrase){alert(`** ${phrase} **`);}
This is rather than spread over nine lines as shown in both the examples and repo .
Editing the source in browser does allow for the addition of breakpoints but upon directed refresh the code is reset to its original state and the results do not match those in the tutorial text.
Given the repo code seems to be as intended suggests perhaps a deployment issue.
Confirmed with browser versions:
- Chrome: 126.0.6478.185 (Official Build) (64-bit)
- Firefox: 128.0.3 (64-bit)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
デプロイされたサンプルページを、issue で意図されたソースとして特定されている 1-js/03-code-quality/01-debugging-chrome/debugging.view/hello.js と比較します。まず、そのサンプルがどのようにビルドまたはデプロイされるかを確認し、その後、リロードしてブラウザーの Sources パネルを検証します。デプロイされたサンプルに9行のソースが表示され、チュートリアルのテキストと一致すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- documentation
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100