Pancreas is the gland that has both functions. The endocrine portion secretes hormones like glucagon and insulin hormones. Through the exocrine portion, it secretes digestive enzymes like pancreatic lipase, trypsin, chymotrypsin, lipase, and nucleases.