JavaScript Symbol.replace Property

18 Mar 2025 | 1 min read

The JavaScript Symbol.replace symbol determine the method that replaces the matched substring of a string.

Syntax

Parameters

String.

Return value

A new string.

Browser Support

Chrome32
Safari8
Firefox29
Opera19

Example 1

Output:

 Before: java After: TpointTech 

Example 2

Output:

 Before: TpointTech After: TpointTech