Pineapple is a complex fruit that contains various chemical compounds, such as sugars, acids, vitamins, minerals, antioxidants, and enzymes. These compounds contribute to the flavor, color, texture, and nutritional value of pineapple.