In Egyptian mythology, Huh (or Hah or Heh) was one of the Ogdoad. Along with his wife, Hauhet, he was the personification of space and infinite. He was frog-headed.
Huh is a simple sound representing confusion of the one making it, similar to er and other speech disfluencies.
It can also represent unarticulated muttering such as in Huh-euh-huh.
Huh can be a slang way of creating an interrogative which is nearly rhetorical, giving huh the meaning of "isn't it?", e.g., "Wikipedia is cool, huh?"
Huh used as a statement can also mean 'I tentatively accept that.', however the intonation drops instead of rises in pitch.
Uh before Huh states "yes", and the pitch of "huh" is usually higher than "uh"