Update check-for-all-or-none.english.md (#34758)
Added Solution to the problem Change the regex favRegex to match both the American English (favorite) and the British English (favourite) version of the word.
This commit is contained in:
committed by
Paul Gamble
parent
6128976cc5
commit
80d66a9808
@ -56,6 +56,8 @@ let result = favRegex.test(favWord);
|
||||
<section id='solution'>
|
||||
|
||||
```js
|
||||
// solution required
|
||||
let favWord = "favorite";
|
||||
let favRegex = /favou?r/;
|
||||
let result = favRegex.test(favWord);
|
||||
```
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user