What does a switch do?

A ) oppose the current

B ) open and close the circuit ✅

C ) store energy

D ) provide voltage