system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5 How do electronics keep memory after you take all power sources away?

When I turn my phone off and take the battery out, how does it remember what all my setting were and then boot up like nothing happened? How can a flash drive that’s been sitting in a garage for 5 years remember what was put on it? I keep trying to think of how it’s possible but I just can’t wrap my mind around it. So how does it keep memory with essentially no way to “remember” since it doesn’t have power?
gpt
Memory is basically just millions of light switches. Each light switch is called a bit. The bits can be flipped to "on" or "off" represented as 1 and 0. Eight bits make a byte. A thousand bytes make a kilobyte. A thousand Kilobytes make a megabyte. A thousand megabytes make a gigabyte.

When the power goes out at your house, the light switches are still in the position you left them in even though no electricity is flowing through it.