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