Javatpoint Logo
Javatpoint Logo

JavaScript Symbol.replace Property

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

Chrome 32
Safari 8
Firefox 29
Opera 19

Example 1

Test it Now

Output:

Before: java
After: Javatpoint

Example 2

Test it Now

Output:

Before: javatpoint
After: JAVATPOINT

Next TopicJavaScript Symbol




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA