You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
503 B

## Same Amount
4 years ago
### Instructions
4 years ago
Create a `sameAmount` function that takes three parameter,
a data string and 2 regexes.
The objective is to confirm that the second and the third parameter matched
the same amount of times in the first parameter.
4 years ago
### 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)