I've had both and prefer gas. I don't know why, tho. They both work in the same way on the clothes. If you have one or the other now, I'd just stick with the same because you would have to have 220V installed for electric if you switch to electric.
When I installed my gas cook top and dryer, many many years ago, the gas company was able to compare the cost of electric with the cost of gas for me. Way back then gas was noticeably less expensive. I don't know about now. I'd call and ask.
You didn't ask about gas for cooking but if that's a consideration I love my gas cook top. I really don't like cooking on my daughter's electric range. I've had both and gas is so much more responsive.