Salin kode kode sebagai berikut: var s = "abachdas"; var s2 = s.replace (regexp baru (/(a)/), 'b');