In addition to the other answer you got. E-bikes are pedal assist, so illegal ones usually have throttles in addition to more powerful motors. This depends on the region though.
In the United States, throttle-only ebikes that go up to 20 miles per hour (Class 2 ebikes) are legal pretty much everywhere. They're required to have functional pedals, but no pedal assist function is required.
In the United States, throttle-only ebikes that go up to 20 miles per hour (Class 2 ebikes) are legal pretty much everywhere. They're required to have functional pedals, but no pedal assist function is required.