RAM (Random-access memory) is a computer memory device that temporarily stores binary code generated data and machine code on its transistors. RAM; It can also be expressed as primary memory, main memory, random-access memory.
Random-access memory can read and write data in almost the same amount regardless of their physical location. It is quite fast compared to hard disks because it works independent of its physical location.
Data held in RAM is not permanent. In other words, the data in the memory will be completely erased, except for some memories, since the current in the transistors will be cut in cases such as shutting down, restarting, or disconnecting the computer from electricity.
Apart from traditional RAMs, RAMs that permanently store data have also been developed. 
ROM (Read-only memory) is a memory chip in which read-only data is stored. In ROM, where data cannot be written as in RAM, data is written to chips using binary code.  Since the data is pre-written on the chips, the information in the ROM continues to be stored in cases such as shutting down the computer, disconnecting the electricity.
Data originally written to the ROM chip cannot be removed afterwards.  Read-only memory is also useful for storing systems known as firmware where simple functions and program steps are processed.  An example of a read-only memory (ROM) is the BIOS chip, which contains the basic information the computer needs to start up.
All ROM chips, including EEPROM, EPROM, continue to store their data in the event of a power or power supply failure. The data written to the ROM chip cannot be tampered with by the users.
|RAM (Random-access memory)||ROM (Read-only memory)|
|Can store large data.||Can store data in small sizes.|
|Data exchange is fast. Read, write, delete etc. transactions are performed quickly.||Data read speed is many times lower than RAM. |
|Operations such as read, write, delete can be done.||Data is read-only. Data cannot be tampered with by users. Data is programmed during or after production.|
|Data is deleted in case of power supply failure.||Data is stored permanently. After the power supply is interrupted, the data continues to be stored.|
|It is used on computers to prevent repeated reading of the read data and to open applications faster.||System startup settings, BIOS settings, or memory where software instructions are programmed.|
|It costs too much.||It costs less.|
RAM and ROM, which are the basic parts of the computer, store data in different ways. Data is stored temporarily in RAM while data is stored permanently in ROM. Again, while large amounts of data can be stored in RAM, lower amounts of data can be stored in ROM. I have discussed such differences between RAM and ROM in detail in the table after explaining what RAM and ROM are.
In this article, I talked about what RAM and ROM are, what they do, and the differences between random-access memory and read-only memory. See you in future articles.