It performs both endocrine and exocrine functions.
Despite the fact that food never enters the pancreas, the organ is crucial to digestion. It secretes pancreatic fluid, which is transported to the duodenum via the pancreatic duct. The fluid's enzymes assist in the breakdown of fat, protein, and carbohydrates once it enters the digestive system. It performs the role of an exocrine gland by secreting a substance through ducts to other areas of the body. It also performs an endocrine function, secreting two hormones into the bloodstream to aid in blood sugar regulation. When you have too much sugar, insulin is released, and when you don't, glucagon is released.