Onions are bulb-shaped vegetables growing underground with pungent smell and flavor, closely related to shallots,…