js change word in string code example Example: change word in string javascript let str = "Hello World!"; let res = str.replace("World", "Birds");