fix(curriculum): update note in authors project (#59045)

This commit is contained in:
Oliver Eyton-Williams
2025-02-28 21:31:29 +01:00
committed by GitHub
parent 80518b969a
commit 56f9910b0a
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ The `.catch()` method is another asynchronous JavaScript method you can use to h
Chain `.catch()` to the last `.then()`. Pass in a callback function with `err` as the parameter. Inside the callback, use `console.error()` to log possible errors to the console with the text `There was an error: ${err}`. Since you're using `err` in the text, don't forget to use a template literal string with backticks (\`\`) instead of single or double quotes.
**Note**: Now you can terminate your code with a semicolon. You couldn't do that in the previous steps because you'll signal to JavaScript to stop parsing your code, which will affect the `fetch()` syntax.
**Note**: `catch` is the last call chained on to fetch, so you can terminate your code with a semicolon.
# --hints--

View File

@@ -11,7 +11,7 @@ The `.catch()` method is another asynchronous JavaScript method you can use to h
Chain `.catch()` to the last `.then()`. Pass in a callback function with `err` as the parameter. Inside the callback, use `console.error()` to log possible errors to the console with the text `There was an error: ${err}`. Since you're using `err` in the text, don't forget to use a template literal string with backticks (\`\`) instead of single or double quotes.
**Note**: Now you can terminate your code with a semicolon. You couldn't do that in the previous steps because you'll signal to JavaScript to stop parsing your code, which will affect the `fetch()` syntax.
**Note**: `catch` is the last call chained on to fetch, so you can terminate your code with a semicolon.
# --before-all--