A buffer is a

A. thick layer of cell wall that protects bacteria.
B. chemical that helps to maintain a relatively constant pH.
C. substrate for central metabolic pathways like glycolysis.
D. common structural component of biofilms that surrounds bacterial cells.
E. protective zone around the nucleoid of prokaryotes.