Skip to content

Commit

Permalink
Fix missed line number change
Browse files Browse the repository at this point in the history
  • Loading branch information
MaoShizhong committed Oct 31, 2024
1 parent c4e90fe commit 75bd15d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Earlier on in the course we got you to type some simple JavaScript commands into
It's the same error, but different browsers describe it in a different way.

> [!NOTE]
> This error didn't come up as soon as the page was loaded because this error occurred inside a function (inside the `checkGuess() { }` block). As you'll learn in more detail in our later [functions article](/en-US/docs/Learn/JavaScript/Building_blocks/Functions), code inside functions runs in a separate scope than code outside functions. In this case, the code was not run and the error was not thrown until the `checkGuess()` function was run by line 83.
> This error didn't come up as soon as the page was loaded because this error occurred inside a function (inside the `checkGuess() { }` block). As you'll learn in more detail in our later [functions article](/en-US/docs/Learn/JavaScript/Building_blocks/Functions), code inside functions runs in a separate scope than code outside functions. In this case, the code was not run and the error was not thrown until the `checkGuess()` function was run by line 87.
4. The line number given in the error is 79. Have a look at line 79, and you'll see the following code:
Expand Down

0 comments on commit 75bd15d

Please sign in to comment.