mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
fix(curriculum): typos in challenge description (#47759)
* fix: typos in challenge description * fix: remove quotation from code block * Update curriculum/challenges/english/10-coding-interview-prep/rosetta-code/state-name-puzzle.md Co-authored-by: Ilenia <nethleen@gmail.com> * Update curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-basic-javascript-by-building-a-role-playing-game/62aa2999ec27ec516655eba6.md Co-authored-by: Ilenia <nethleen@gmail.com> Co-authored-by: Ilenia <nethleen@gmail.com>
This commit is contained in:
parent
818568376d
commit
242b334517
@ -15,7 +15,7 @@ dashedName: state-name-puzzle
|
||||
|
||||
Write a function to solve the challenge for a given array of actual U.S. state names, and for fictional state names.
|
||||
|
||||
The function should return an array. Each element should be an object in this form: `{"from":[],"to":[]}`. The `"from"` array should contain the original names and the `"to"` array should contain the resultant names.
|
||||
The function should return an array. Each element should be an object in this form: `{"from":[],"to":[]}`. The `from` array should contain the original names and the `to` array should contain the resultant names.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@ -7,7 +7,7 @@ dashedName: step-5
|
||||
|
||||
# --description--
|
||||
|
||||
Below your `.header` element, create a new `div` element and assign it a `class` of `"gallery"`. This `div` will act as a container for the gallery images.
|
||||
Below your `.header` element, create a new `div` element and assign it a `class` of `gallery`. This `div` will act as a container for the gallery images.
|
||||
|
||||
Inside that `.gallery` element, create nine `img` elements.
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ You should use compound assignment to add the string `Right! You win 20 gold!` t
|
||||
assert.match(pick.toString(), /text\.innerText\s*\+=\s*('|")Right! You win 20 gold!\1/);
|
||||
```
|
||||
|
||||
You should use compound assignment add `20` to the value of `gold`.
|
||||
You should use compound assignment to add `20` to the value of `gold`.
|
||||
|
||||
```js
|
||||
assert.match(pick.toString(), /gold\s*\+=\s*20/);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user