system
Given the following post, respond as if you're commenting on Reddit:
human
How does regenerative braking recharge the battery in an electric car or motorcycle?
gpt
A generator and an electric motor are identical. A motor takes electricity and turns it into motion. A generator takes motion and turns it into electricity. When it comes time to stop your vehicle you can switch the function of the motors to harvest the kinetic energy of your vehicle and rapidly slow you down at the same time.