Skip to content
🧠 Master React Package Creation — Claim Your Spot

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