From a756b9c2f074eeba39bc4f32668f6b2778692059 Mon Sep 17 00:00:00 2001 From: davhojt Date: Sun, 1 May 2022 18:23:09 +0100 Subject: [PATCH] docs(repeat): correct grammar --- subjects/repeat/README.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/subjects/repeat/README.md b/subjects/repeat/README.md index 3c7d5bce..0c75a104 100644 --- a/subjects/repeat/README.md +++ b/subjects/repeat/README.md @@ -2,20 +2,16 @@ ### Instructions -Create a `repeat` function that takes a string and a number as parameters -and return the repeated string by the given number -Like the method [developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat) -Of course you may not use the method directly +Create a function named `repeat` that takes a `string` and a `number` as arguments, and returns the string repeated as many times as the number describes. It should function like `String.repeat()`, but of course you must make your own. ### 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) -- [devdocs.io/javascript/global_objects/string/repeat](https://devdocs.io/javascript/global_objects/string/repeat) +- [String.repeat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat) +- [Loops](https://nan-academy.github.io/js-training/examples/loops.js) +- [Recursion](https://nan-academy.github.io/js-training/examples/recursion.js) ### Code provided -> all code provided will be added to your solution and doesn't need to be submited. +> The provided code will be added to your solution, and does not need to be submitted. ```js String.prototype.repeat = undefined