Electric cars operate using electricity instead of traditional petrol or diesel engines, highlighting a shift towards renewable energy sources. Charging these vehicles is facilitated through electric infrastructure within cities, ensuring convenience and efficiency for users.