mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): wrap method name in backticks (#63904)
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ const text = "I like cats";
|
||||
console.log(text.replace("cats", "dogs")); // "I like dogs"
|
||||
```
|
||||
|
||||
- **The `replaceAll()` Method**: This method allows you to find all occurrences of a specified value (a word, character, or pattern) in a string and replace them with another value. It works like replace(), but instead of stopping after the first match, it updates every match found in the string.
|
||||
- **The `replaceAll()` Method**: This method allows you to find all occurrences of a specified value (a word, character, or pattern) in a string and replace them with another value. It works like `replace()`, but instead of stopping after the first match, it updates every match found in the string.
|
||||
|
||||
```js
|
||||
const text = "I love cats and cats are so much fun!";
|
||||
|
||||
Reference in New Issue
Block a user