In this challenge, you are asked to change the regex so that it defines the existence of the letter u, resulting in the acceptance of both American and British versions of the word favourite/favorite.
The variable favWord already contains the American version — favorite. Does the regular expression in favRegex also match the British version?
Have you used the question mark, ? symbol, if so, have you placed it in the correct position?
Solution 1 (Click to Show/Hide)
let favWord = "favorite"; let favRegex = /favou?rite/; // Change this line let result = favRegex.test(favWord);