fix(curriculum): potentially confusing use of brackets in challenges text (#52844)

This commit is contained in:
luqmanalzobe
2024-01-01 00:21:03 -05:00
committed by GitHub
parent 99f8567aa5
commit a4ca7db8c4
4 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ dashedName: step-119
# --description--
Now you can build the `attack` function. First, update the `text` message to say `The [monster name] attacks.`, replacing `[monster name]` with the name of the monster. Remember you can use the concatenation operator for this.
Now you can build the `attack` function. First, update the `text` message to say `The <monster name> attacks.`, replacing `<monster name>` with the name of the monster. Remember you can use the concatenation operator for this.
# --hints--

View File

@@ -7,7 +7,7 @@ dashedName: step-120
# --description--
On a new line, add the string ` You attack it with your [weapon].` to the `text` value, replacing `[weapon]` with the player's current weapon.
On a new line, add the string ` You attack it with your <weapon>.` to the `text` value, replacing `<weapon>` with the player's current weapon.
# --hints--

View File

@@ -7,7 +7,7 @@ dashedName: step-128
# --description--
Inside the `dodge` function, set `text.innerText` equal to the string `You dodge the attack from the [monster]`. Replace `[monster]` with the name of the monster, using the `name` property.
Inside the `dodge` function, set `text.innerText` equal to the string `You dodge the attack from the <monster>`. Replace `<monster>` with the name of the monster, using the `name` property.
# --hints--

View File

@@ -7,7 +7,7 @@ dashedName: step-155
# --description--
Use the `+=` operator to add `Your [weapon] breaks.`, with a space in front of `Your`, to the end of `text.innerText`. Replace `[weapon]` with the last item in the `inventory` array using `inventory.pop()`, which will remove the last item in the array AND return it so it appears in your string.
Use the `+=` operator to add `Your <weapon> breaks.`, with a space in front of `Your`, to the end of `text.innerText`. Replace `<weapon>` with the last item in the `inventory` array using `inventory.pop()`, which will remove the last item in the array AND return it so it appears in your string.
# --hints--