34,333
edits
Changes
→JavaScript String Object Methods
</tr>
<tr>
<td>replace()<td>Accepts two arguments: a regular expression and a replacement string. Converts Repalces all matches to the regular expression in a String object instance with tyhe the replacement stringprovided. Returns -1 if no match is found.</td>
</tr>
</table>