The primary purpose of a screwdriver is driving or removing screws. Power tools have an advantage over hand tools because they use more power and torque, which can adjust with the torque settings.
In certain situations, a screwdriver can drill holes in the absence of a cordless drill if you need to reach into a tight space where your drill will not fit. Keep in mind that a screwdriver does not perform the full range of functions or speeds as a regular drill, so you should only use this as a last-minute option. You can use a screwdriver as a drill in lightweight materials such as softwood and thin steel. Never use a screwdriver to drill into materials such as solid walls, concrete, masonry, or for heavy or prolonged drilling tasks.
Screwdrivers, like other types of power tools, run on either air or electricity, with corded or cordless options. Before you choose a type, know what kind of work you will do and the setting.
Fun Fact: Rechargeable cordless drivers exist. Some can recharge by simply plugging into a micro USB cable.