replace() method

Home   »   replace() method

// replace() method
const fullName = "Tahiya Jahan Tuba"
var replaceName = fullName.replace("Tuba","Laboni")
console.log(replaceName) // result = Tahiya Jahan Laboni

Leave a Reply

Your email address will not be published. Required fields are marked *