let huhText = "This sandwich is good."; let fixRegex = /change/; // Change this line let replaceText = ""; // Change this line let result = huhText.replace(fixRegex, replaceText);
1
2
3
4
5
6
7
8
9
10
11
12
let wrongText ="The sky is silver.";
let silverRegex =/silver/;
wrongText.replace(silverRegex,"blue");
// Returns "The sky is blue."
"Code Camp".replace(/(\w+)\s(\w+)/,'$2 $1');
// Returns "Camp Code"
let huhText ="This sandwich is good.";
let fixRegex =/change/;// Change this line
let replaceText ="";// Change this line
let result = huhText.replace(fixRegex, replaceText);