Which of the following best describes an electrolyte in the context of chemistry?
A) A substance that dissolves in water to form a non-conductive solution.
B) A substance that dissolves in water to produce ions, allowing the solution to conduct electricity.
C) A compound that reacts with acids to form a salt and water.
D) A substance that neutralizes acids to form a basic solution.