You can replace pieces of strings with other text as well. For example, let's use the classic line "hello world" and turn it into "goodbye world" using the replace() method.
With replace, you need to enter the text to be replaced and its replacement. The proper syntax is "original string".replace("word to be replaced", "replacement word"); For instance, here you can use "hello world".replace("hello","goodbye").
Try using replace on the string "coding rules" to make it "programming rules".
Remember, the proper syntax here is to use "original text".replace("text to be replaced", "new text");
Io allora scrivo "helloworld".replace("hello", "goodbye")
Mi ritorna goodbye world ma il sistema del corso da errore perchè non è quello che chiede.
Dove sbaglio?

