I have a question. There is a sentence:
I gave her a candy and she spat it right out; she said it tasted bad.
Does right in this sentence means immediately like in "I'll be right back"?
I have a question. There is a sentence:
I gave her a candy and she spat it right out; she said it tasted bad.
Does right in this sentence means immediately like in "I'll be right back"?
Yes, this is "right" being used as an adverb, and can mean a variety of things including completely, immediately, or to a great degree.
In your example, it should really be "spat it right out" ('spat' is the past participle of the verb to spit), but it might be that the writer wanted to convey colloquial speech. In either case, "spat/spit it right out" conveys the idea that they spat out the whole thing, or that they spat it out so hard it came out the mouth in a projectile fashion.