Horje
how to use the replace method in javascript Code Example
javascript replace
var res = str.replace("find", "replace");
how to use the replace method in javascript
let string = 'soandso, my name is soandso';

let replaced = string.replace(/soandso/gi, 'Dylan');

console.log(replaced); //Dylan, my name is Dylan
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




Javascript

Related
javascript object to query string Code Example javascript object to query string Code Example
falsy values javascript Code Example falsy values javascript Code Example
javascript array to query string Code Example javascript array to query string Code Example
javascript convert to and from binary Code Example javascript convert to and from binary Code Example
swap two variables javascript Code Example swap two variables javascript Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7