Skip to content

Commit

Permalink
fix(curriculum): update single quote to double quotes for strings (fr…
Browse files Browse the repository at this point in the history
  • Loading branch information
RGHANILOO authored Oct 30, 2024
1 parent bb16ab9 commit 7fa460a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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--
Expand Down

0 comments on commit 7fa460a

Please sign in to comment.