1const p = 'The quick brown fox jumps over the lazy dog. If the dog reacted, was it really lazy?';
2
3console.log(p.replaceAll('dog', 'monkey'));
4
5// expected output: "The quick brown fox jumps over the lazy monkey. If the monkey reacted, was it really lazy?"
6
7
8
9
1document.body.innerHTML = document.body.innerHTML.replaceAll("Coronavirus", "Your Mom");
2document.body.innerHTML = document.body.innerHTML.replaceAll("COVID-19", "Your Mom");
3
1var frase = "Son tres mil trescientos treinta y tres con nueve";
2frase = frase.replace("tres","dos");
3console.log(frase);
4//Son dos mil trescientos treinta y tres con nueve