How to do String Replacement in Javascript

Submitted by Web Cash » String replacement is simple enough in PHP - use the str_replace function. Is there an equivalent function we can use in Javascript?
Rating: 3.0/5 | 230 clicks | 0 comments | 0 saves | share | report

Additional statistics

Average rating: 3.00/5.0
Clicks today: 0
Clicks this month: 10
Clicks total: 230
Number of comments: 0
Number of saves: 0