Skip to content
Latest: Publish JavaScript Packages to NPM Like a Pro!

Edit It: Replace '$1m shops' and 'Walk789' with 'John, who has $1m dogs,' and 'John, who has 789 dogs,'

Home>replace() JavaScript String Method>Edit It: Replace '$1m shops' and 'Walk789' with 'John, who has $1m dogs,' and 'John, who has 789 dogs,'

Edit It: Replace '$1m shops' and 'Walk789' with 'John, who has $1m dogs,' and 'John, who has 789 dogs,'

This code shows how to replace strings.

See it on StackBlitz