Have you ever seen a toy car that runs on batteries? The batteries make electricity flow through a wire and into the car, which makes it move. But what if you wanted the car to move backwards instead of forwards? You might think, "I'll just turn the car around and it will go backwards!" But what if you wanted the car to move really fast in both directions?
That's where an inverter comes in. An inverter is like a magic box that can turn the electricity from the batteries into something that can be used to power things that need to go both forwards and backwards. It does this by changing the direction of the flow of electricity many times per second, in a way that is too fast for you to see.
Think of it like a water hose that can spray water in different directions. If you turn the hose on full blast and point it in one direction, the water will shoot out in a straight line. But if you move your hand around quickly, the water will spray in different directions. This is kind of like what an inverter does with electricity. It moves it around really quickly to make it go forwards and backwards.
Some things that use inverters are electric cars, air conditioners, and even some household appliances like microwaves. So next time you see something that seems to be working in two directions, you can think to yourself, "That's because of an inverter!"