The red, black, white, and green wires in an electrical circuit serve different purposes:
- Red wire: Typically used as the live or hot wire to carry electrical current.
- Black wire: Usually serves as the neutral wire to complete the circuit and return current to the power source.
- White wire: Often used as the neutral wire in some circuits to provide a return path for the current.
- Green wire: Functions as the ground wire to provide a safe path for excess electricity to flow in case of a fault.