Stop in for a cup of coffee

What would be the point of diodes
Diodes are one way valves for electricity. Basically they change the A/C current the alternator puts out to DC current that the car can use.