If you mean a digital guitar, then I wonder how hard it is to learn to play it. Never had one in my hands.
If you mean a normal electric guitar, I think there's not much difference in learning to play. The only difference is, on an electric guitar you have to take care of your sounds additionally, where on an acoustic guitar you have to have a bit more power in your fingers, to create a nice tone. Both have their frustrations and enjoyments.