The airflow generated by the fan is directed down the barrel of the hairdryer, over and through the heating element.
As the air flows over and through the heated element, the generated heat warms the air by forced convection.
The hot air streams out the end of the barrel.