Use Capture Groups to Search and Replace1[solved]

Use Capture Groups to Search and Replace1[solved]
0

#1

Tell us what’s happening:
I have something wrong?

Your code so far


let huhText = "This sandwich is good.";
let fixRegex = /This sandwich is good./; // Change this line
let replaceText = "This sandwich is okey-dokey."; // Change this line
let result = huhText.replace(fixRegex, replaceText);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/use-capture-groups-to-search-and-replace