If there’s only one cord attached to the dryer, it’s electric. However, if your dryer has a cord and a thing stainless steel connector, this implies that your dryer is gas.