It depends on what you mean with an e-bike, most e-bikes are pedelecs.
That means they don't have a throttle which is what a motorcycle or moped has.
You have to pedal to get an assist, this can either be a hub drive or a mid drive motor which have different characteristics (that's another story).