Xanax, commonly known as this medication , is a controlled medication belonging to the class of drugs that’s primarily used to alleviate anxiety symptoms and panic situations. Doctors may prescribe it for conditions like generalized anxiety disorder, social anxiety disorder, and panic disorder. T