mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-14 01:00:36 -04:00
fix(curriculum): potentially confusing use of brackets in challenges text (#52844)
This commit is contained in:
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
@@ -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--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user