what makes mouthwash, shampoo, liquid sosa and salt a base.?

like, lye- sodium hydroxide.