How is a webcam used?

a webcam is used to monitor things or to have a vidio chat with somebody