mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): update single quote to double quotes for strings (#56992)
This commit is contained in:
+5
-5
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user