let str = "This is a simple string. Simple!" console.log(str.replace('simple', 'complex')); // Result: // This is a complex string. Simple!
let str = "This is a simple string. Simple!" console.log(str.replace('simple', 'complex')); // Result: // This is a complex string. Simple!