There is a test that I still nedd to pass: Your regex should change "one two three" to `“three two one”.
let str = "one two three";
let fixRegex = /^(\w*)\s(\w*)\s(\w*)\s$/; // Change this line
let replaceText = "'$1 $2 $3'"; // Change this line
let result = str.replace(fixRegex, replaceText);
let str = "one two three";
let fixRegex = /^(\w*)\s(\w*)\s(\w*)$/; // Change this line
let replaceText = '$3 $2 $1'; // Change this line
let result = str.replace(fixRegex, replaceText);
console.log(result);