Computer memory is a device that is used to store data. Also, it has two types of memory, primary memory and secondary memory.