Food preservatives are substances or compounds added to food to prevent spoilage and extend its shelf life. They work by…