What is the primary function of a battery?
a) To convert electrical energy into light
b) To store and provide electrical energy through chemical reactions
c) To increase the speed of electronic devices
d) To amplify sound in electronic devices