diff --git a/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none/index.md b/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none/index.md index 02d0429257..e521ccdca7 100644 --- a/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none/index.md +++ b/guide/english/certifications/javascript-algorithms-and-data-structures/regular-expressions/check-for-all-or-none/index.md @@ -3,8 +3,13 @@ title: Check for All or None --- ## Check for All or None -This is a stub. Help our community expand it. -This quick style guide will help ensure your pull request gets accepted. +### Hint: +The difference between american and british English for the given word is: favorite-favourite. We need to define the existance of the letter u . - +## Solution +```javascript +let favWord = "favorite"; +let favRegex = /favou?rite/; // Change this line +let result = favRegex.test(favWord); +```