My values seems to be correct; however, my replace is not replacing with what I put in.
var wiseProverb = "Actions shout louder than words."; // Code will be tested
with "You don't have to shout so loud."
var substringIndex = 0;
/* Your solution goes here */
substringIndex = wiseProverb.indexOf("shout");
wiseProverb.replace("shout", "speak");
CORRECT Testing the value of substringIndex Yours 8
INCORRECT Checking that wiseProverb was updated from "Actions shout louder than words."
Yours and expected differ. See highlights below.
Yours
Actions shout louder than words.
Expected
Actions speak louder than words.
Correct Testing the value of substringIndex with wiseProverb = "You don't have to shout so loud."
Yours
18
INCORRECT Checking that wiseProverb was updated from "You don't have to shout so loud."
Yours and expected differ. See highlights below.
Yours
You don't have to shout so loud.
Expected
You don't have to speak so loud.