docs(same-amount): correct grammar

This commit is contained in:
davhojt 2022-05-02 14:56:30 +01:00 committed by Dav Hojt
parent dce9165704
commit 4d7dad6dd3
1 changed files with 3 additions and 5 deletions

View File

@ -2,12 +2,10 @@
### Instructions ### Instructions
Create a `sameAmount` function that takes three parameter, Create a function named `sameAmount`, that takes three arguments: a `string`, and 2 regular expressions. Your function should return a `boolean`.
a data string and 2 regexes.
The objective is to confirm that the second and the third parameter matched The objective is to confirm that the regular expressions match the string the same number of times.
the same amount of times in the first parameter.
### Notions ### 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)