The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

How to use JavaScript's String.replace

How to use JavaScript's String.replace

5:26
In JavaScript, you can change the content of a string using the `replace` method. This method signature is overloaded with a bunch of different ways to do string replacement in JavaScript. This lesson covers the entire API (including an interesting [DSL](https://en.wikipedia.org/wiki/Domain-specific_language) for the replacement string).
Watch this lesson now
Avatar
egghead.io

In JavaScript, you can change the content of a string using the replace method. This method signature is overloaded with a bunch of different ways to do string replacement in JavaScript. This lesson covers the entire API (including an interesting DSL for the replacement string).

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?