It is an interjection which is usually used in a moment of euphoria produced by a sudden joy; but it can also be used to a good or bad, positive or negative news.