Being rejected, shouted at or beat up - there are many reasons for wanting to seek revenge. There might be anger, hate, or sadness boiling up inside of one's soul, after someone had let them down. The dark wish to put them into the same position as they were put into, demonstrating power and seeking justice. They will think about hitting back by the same means, and they might be expected to do so. But the unexpected is the much stronger way to go. Hitting back by being kind and polite will be much more provoking than any mean words or actions could ever be.
By hitting back, you will be as bad of a person as your opponent. Instead, walk off and smile, and you will always stand upon them.