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:
Aashis kumar
2019-02-17 22:14:19 +05:30
committed by Paul Gamble
parent 6128976cc5
commit 80d66a9808

View File

@ -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>