As a beginner this is probably the first question you may ask. There is a widely held belief that you must begin on an acoustic guitar. Only when you have mastered the basics on an acoustic might you progress onto electric guitar. In my opinion this is untrue.
Unless you are solely interested in acoustic music, there is no reason not to begin on an electric guitar should you so wish. There are some advantages. Electric guitars tend to be more comfortable to work with due to the slim body design and a low action. The "action" of a guitar is the distance between the strings and the fretboard. The better the action, the easier it is to play. This is important. Why make life harder than it need be? Electric guitars also tend to have slimmer necks which may be an advantage to some people. That is not to say all acoustic guitars are hard work!
Guitar design has improved immeasurably and there are many modestly priced electric and acoustic instruments now available that are wonderful in sound quality and playability.
I strongly recommend you play as many different guitars as you can and compare. All guitars feel slightly different and one may feel just that little bit easier to get on with than another. This is the instrument you should buy. Playability is the absolute priority.
So, acoustic or electric? Ultimately it comes down to the sound you prefer and the music you want to play. Both instruments are wonderful in their own right and both are suitable for a beginner.