Answers for "how to use variables with replace in js"

31

javascript replace

var res = str.replace("find", "replace");
Posted by: Guest on October-21-2019
1

javascript replace

var frase = "Son tres mil trescientos treinta y tres con nueve";
frase = frase.replace("tres","dos");
console.log(frase);
//Son dos mil trescientos treinta y tres con nueve
Posted by: Guest on November-16-2020

Code answers related to "how to use variables with replace in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language