Which of the following states the law of constant proportions ?
A) Matter is neither created nor destroyed during a chemical reaction.
B) A given chemical substance always contains the same elements combined in fixed proportion.
C) Atoms of different elements have different masses and chemical properties.
D) Compounds are formed when atoms of different elements combine in whole number ratios.