Tell us what’s happening:
i have answered step 6 task correctly yet its giving me corrections that arent there
Your code so far
const originalString = "I love cats.";
console.log("Original string:");
console.log(originalString);
const replacedString = originalString.replace("cats", "dogs");
console.log("After using the replace() method:");
console.log(replacedString);
const exampleSentence = "I love cats and cats are so much fun!";
console.log("Original sentence:");
// User Editable Region
// Assuming exampleSentence was defined in a previous step
const exampleSentence = "I love cats and cats are so much fun!";
// Create the new variable using the .replace() method
const dogsOnlySentence = exampleSentence.replace("cats", "dogs");
// Log the description message
console.log("Replacing all occurrences of cats with dogs:");
// Log the actual variable
console.log(dogsOnlySentence);
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
Challenge Information:
Build a String Transformer - Step 6