Xanax, also known as alprazolam, is a medication that belongs to the benzodiazepine class of drugs. It is primarily used…