Xanax, a medication that belongs to the benzodiazepine class, is primarily prescribed to manage anxiety and panic disorders. While it…