mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-16 21:06:35 +08:00
fix(curriculum): update single quote to double quotes for strings (#56992)
This commit is contained in:
parent
bb16ab9245
commit
7fa460ad3e
@ -21,7 +21,7 @@ Fulfill the user stories below and get all the tests to pass to complete the lab
|
||||
1. Each row should start with a number of spaces sufficient to put the center character of each row in the same column.
|
||||
1. The pyramid should start and end with a newline character.
|
||||
|
||||
For example, calling `pyramid('o', 4, false)` should give this output:
|
||||
For example, calling `pyramid("o", 4, false)` should give this output:
|
||||
|
||||
```js
|
||||
|
||||
@ -46,16 +46,16 @@ Your `pyramid` function should have three parameters.
|
||||
assert.lengthOf(pyramid, 3);
|
||||
```
|
||||
|
||||
`pyramid('o', 4, false)` should return `"\n o\n ooo\n ooooo\nooooooo\n"`.
|
||||
`pyramid("o", 4, false)` should return `"\n o\n ooo\n ooooo\nooooooo\n"`.
|
||||
|
||||
```js
|
||||
assert.equal(pyramid('o', 4, false), "\n o\n ooo\n ooooo\nooooooo\n")
|
||||
assert.equal(pyramid("o", 4, false), "\n o\n ooo\n ooooo\nooooooo\n")
|
||||
```
|
||||
|
||||
`pyramid('p', 5, true)` should return `"\nppppppppp\p ppppppp\n ppppp\n ppp\n p\n"`.
|
||||
`pyramid("p", 5, true)` should return `"\nppppppppp\p ppppppp\n ppppp\n ppp\n p\n"`.
|
||||
|
||||
```js
|
||||
assert.equal(pyramid('p', 5, true), "\nppppppppp\n ppppppp\n ppppp\n ppp\n p\n")
|
||||
assert.equal(pyramid("p", 5, true), "\nppppppppp\n ppppppp\n ppppp\n ppp\n p\n")
|
||||
```
|
||||
|
||||
# --seed--
|
||||
|
||||
Loading…
Reference in New Issue
Block a user