The Random Access Memory (RAM) helps to store data in the laptop for short-term usage. RAM works as a conjunction with the hard drive, which takes care of long-term storage.
RAM provides quick access to files that the computer is actively reading or writing.
However, unlike hard drive memory, program data stored in RAM get erased when you reboot the laptop or when another program needs the space for its own use.