WeCodeAcademy
❮ endsWith()replaceAll() ❯

replace()

Replaces the first match.

Group: String

Syntax

string.replace(find, replacement)

Example

Examplejavascript
Open in editor »

← All of JavaScript Reference