https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_went_wrong
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_went_wrong#syntax_errors_round_two
The documentation says: This time the error being reported is "TypeError: lowOrHi is null", on line 78
but when I am going through the tutorial, the error messaging being reported to me is: number-game-errors.html:78 Uncaught TypeError: Cannot set properties of null (setting 'textContent') at HTMLInputElement.checkGuess (number-game-errors.html:78:29)
.
As a beginner, it was confusing to see the different wording. They're both TypeError
's and it is saying null
but it didn't line up with what the documentation had, so I was worried something else was wrong. The fix is still the same, just this one part was different.
I expected to see this messaging: number-game-errors.html:78 Uncaught TypeError: Cannot set properties of null (setting 'textContent') at HTMLInputElement.checkGuess (number-game-errors.html:78:29)
. I am using Chrome Version 109.0.5414.87 (Official Build) (x86_64) and am on Mac OS Ventura 13.1.
No response
If other folks are seeing the same thing, I can open a PR to update the wording and attach a new screenshot. Thank you for taking time to look into this.
This screenshot below is what I am seeing on my end with the different messaging:
en-us/learn/javascript/first_steps/what_went_wrong