let str = 'JS will, JS will rock you!'; let newStr = str.replace('JS','JavaScript'); console.log(newStr); Code language: JavaScript (javascript)