Earlier quoted context omitted.
However, a gasoline powered car also takes engine oil and transmission fluid if it's an automatic. It will also require regular servicing of the engine and eventual replacement of worn seals etc. If the fuel cost per mile is the same the electric car could still be cheaper. I can't say how much though, because that depends on the servicing cost per year vs the battery replacement cost and that depends on your local s…
Luckily you don't need to maintain electric cars at all.
It boils down to: battery (big unknown, but seem to be holding up surprisingly well), engine (incredibly simple!), no transmission or a very simple one (Nissan Leaf has a single gear), inverter, charger, brakes, and the standard 12V battery you find in all cars (which doesn't have to drive a starter motor, so should last longer).