How to use joints?

Could you please explain the different types of joint, and exactly what each joint type does. Also, how I would go about creating one (I assume it is very similar to a body). Thanks 😀
I plan to describe joints fully in the documentation. For now, please look at the test bed. All aspects of joints are represented in the test cases.

Original thread: https://box2d.org/forum/viewtopic.php?t=44