Can Hashem get angry and does hashem have emotions like humans do and to what extent?
Hashem is not human, and does not have human emotions. However, the Torah describes Hashem as being angry with His people, or with individuals, so that we can understand His ways.
The Torah speaks in the “tongue of men” in stating that Hashem becomes saddened, or glad, or angry, and so on. However, these terms refer to the ways in which Hashem acts, and not to emotional associations we know from ourselves.
This is similar to the interpretation of Hashem’s “hand,” or “eye,” and so on. The reference to Hashem’s eye is to His supervision, His hand to His action, and so on. The same idea applies to emotions.