docs(pyramid): correct grammar

This commit is contained in:
davhojt 2022-05-01 19:45:18 +01:00 committed by Dav Hojt
parent 0513da1fdd
commit 0a870df0c5
1 changed files with 3 additions and 7 deletions

View File

@ -2,11 +2,7 @@
### Instructions
Create a `pyramid` function that takes a string and a number as parameters
and return a pyramid constructed by the string passed as argument and with the depth
of the number passed as argument.
Just like triangle
Create a function named `pyramid` which works just like your `triangle` function. But, it should be pyramid shaped.
### Output example
@ -24,5 +20,5 @@ Just like triangle
### Notions
- [nan-academy.github.io/js-training/examples/loops](https://nan-academy.github.io/js-training/examples/loops.js)
- [nan-academy.github.io/js-training/examples/recursion](https://nan-academy.github.io/js-training/examples/recursion.js)
- [Loops](https://nan-academy.github.io/js-training/examples/loops.js)
- [Recursion](https://nan-academy.github.io/js-training/examples/recursion.js)