Modify this code

Let’s say I have three words: “Free Goods”, “Best Service” & “Discounted Price”.
I want these three words to come one after another while disappearing the previous word. Also, in a typewriter effect.