RAM is the hardware component that loses its contents when the computer is turned off.
RAM (Random Access Memory) is the hardware component that loses its contents when the computer is turned off. Unlike ROM (Read-Only Memory) or secondary storage devices like a hard disk or flash memory, RAM is volatile and requires power to maintain the data stored in it.
https://brainly.com/question/40924880