mirror of https://github.com/01-edu/public.git
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.
15 lines
505 B
15 lines
505 B
5 years ago
|
## Same Amount
|
||
5 years ago
|
|
||
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
|
||
|
|
||
5 years ago
|
- [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)
|