From 4d7dad6dd3b3b386d3d760fbd87db7675884c998 Mon Sep 17 00:00:00 2001 From: davhojt Date: Mon, 2 May 2022 14:56:30 +0100 Subject: [PATCH] docs(same-amount): correct grammar --- subjects/same-amount/README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/subjects/same-amount/README.md b/subjects/same-amount/README.md index 94794d734..9d341517c 100644 --- a/subjects/same-amount/README.md +++ b/subjects/same-amount/README.md @@ -2,12 +2,10 @@ ### Instructions -Create a `sameAmount` function that takes three parameter, -a data string and 2 regexes. +Create a function named `sameAmount`, that takes three arguments: a `string`, and 2 regular expressions. Your function should return a `boolean`. -The objective is to confirm that the second and the third parameter matched -the same amount of times in the first parameter. +The objective is to confirm that the regular expressions match the string the same number of times. ### Notions -- [developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Using_regular_expressions_in_JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Using_regular_expressions_in_JavaScript) +- [Using regular expressions in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Using_regular_expressions_in_JavaScript)