Home » JavaScript Symbol replace Property

JavaScript Symbol replace Property

by Online Tutorials Library

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: TutorAspire 

Example 2

Test it Now

Output:

Before: TutorAspire After: TutorAspire 

Next TopicJavaScript Symbol

You may also like