var string = "golden vigor doers goat"; var replacedString = string.replace("go", "GO"); console.log(replacedString);