beginner
Word Replacer
Replace all occurrences of a specific word with another word.
📝 Conteúdo do Prompt
Write a function called replaceWord that accepts three arguments: the original text, the word to be replaced, and the new word. Return the text string with every instance of the target word replaced by the new word.