Hinge Joint

sorry for the beginner question, but how would a go about making a hinge joint. Say I have an arm attached to a body, how do I make the elbow move like a hinge? Thanks in advance.