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
387 B

## Same Amount
5 years ago
### Instructions
5 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.
### Notions
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Using_regular_expressions_in_JavaScript