Most dryers direct hot air outside through ductwork and a vent. Ventless (condensing) dryers cool the air and release it back into your home.
Dryers use anywhere from 1,800-5,000 watts of electricity per hour. Lint is highly flammable, so fire is a big concern. For both safety and efficiency, clean the lint from your ducts and vents twice a year.