JavaScript Developer — Easy
Key points
- `replaceAll()` replaces all occurrences, not just the first one
- It does not require a global regex flag like the `g` flag
- The method is specific to strings and does not remove characters
- It provides a convenient way to globally replace substrings
Ready to go further?
Related questions
