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.

12 lines
462 B

## Same Amount
5 years ago
### Instructions
5 years ago
Create a function named `sameAmount`, that takes three arguments: a `string`, and 2 regular expressions. Your function should return a `boolean`.
5 years ago
The objective is to confirm that the regular expressions match the string the same number of times.
5 years ago
### Notions
- [Using regular expressions in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#Using_regular_expressions_in_JavaScript)