What is the primary function of chloroplasts?

A. Regulation of gas movement between the leaf and the environment.

B. Carrying out photosynthesis with the help of chlorophyll.

C. Storing the carbohydrates produced by the cell.