From 42078373819635a51f0fc1b52f1319350a06e363 Mon Sep 17 00:00:00 2001 From: davhojt Date: Sun, 1 May 2022 19:39:24 +0100 Subject: [PATCH] docs(triangle): correct grammar --- subjects/triangle/README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/subjects/triangle/README.md b/subjects/triangle/README.md index 1a30268a..53885db1 100644 --- a/subjects/triangle/README.md +++ b/subjects/triangle/README.md @@ -2,14 +2,15 @@ ### Instructions -Create a `triangle` function that takes a string and a number as parameters -and return a triangle constructed by the string passed as argument and with the depth -of the number passed as argument. +Create a function named `triangle` that takes a string and a number as arguments. Your function will return a string representing a triangle. -### Output example +The string will denote the characters which construct the triangle, and the number denotes its depth. -- `*` character and depth of 5: +### Example +```js +console.log(triangle('*', 5)) +``` ``` * ** @@ -22,5 +23,5 @@ of the number passed as argument. ### 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)