var source_string = “The is a JavaScript tutorial”; var rep_string = source_string.replace(“JavaScript”,”JS”);