replace all any word from string javascript code example Example: js replace all substrings /// replace "abc" with "" (blank string) str.replace(/abc/g, '');