Debug code does not match lesson
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- documentation
Research direction
Compare the deployed example page with 1-js/03-code-quality/01-debugging-chrome/debugging.view/hello.js, which the issue identifies as the intended source. First inspect how that example is built or deployed, then verify the browser’s sources panel after a refresh. Done means the deployed example shows the nine-line source and matches the tutorial text.
Written by the indexing model from the issue text.
Description
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)
- Dominant language
- HTML
- Stars
- 25.5k
- Forks
- 4k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from javascript-tutorial/en.javascript.info
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Keyboard events: keydown filtering example can't block IME-composed input (Korean/Japanese/Chinese) Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
javascript-tutorial/en.javascript.info#3978 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
All issues in javascript-tutorial/en.javascript.info
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·
-
NeedsTriage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
error Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
textual definition
Difficulty 1/5 Under an hour Newbie friendliness 90/100
geneontology/go-ontology#32653 ·