Explanation
In the NM cable used for wiring homes, each cable has three wires inside a sheath with each wire covered in a different color of insulation to indicate its type. The wire with the black insulation is the 'hot' wire, white is the neutral wire, and the ground wire is either covered in green insulation or left bare.