ROM stands for read-only memory.
ROM (Read-Only Memory): Non-volatile primary memory. It stores permanent startup instructions (like BIOS/firmware) that stay intact when the power is off. Its contents can be read by a computer’s processor but cannot be altered by the processor. A ROM’s contents are non-volatile; that is, they are retained permanently and are not lost when the computer is powered down. In desktop, laptop and tablet computers the ROM contains the program the computer needs on start-up (the so-called boot-up program, or boot program). In an embedded computer in a device such as a controller for a central-heating system there will only be one program, or perhaps a small collection of programs, and the ROM will contain it.
RAM stands for random-access memory. The computer’s processor can
both read this memory’s contents and alter them. (The process of storing
new contents in a RAM is known as writing to it.) A RAM’s contents
are volatile and so the contents are lost when the computer is powered
down. In desktop, laptop and tablet computers there will be large
amounts of RAM, probably several gigabytes. In an embedded computer
there will normally be much less, sometimes as little as just a few
kilobytes in simple systems. These differences reflect the different needs
of the processors in these computers for working memory.
In the case of desktop, laptop and tablet computers, and smartphones,
RAM and ROM together comprise what is known as the computer’s
main memory.
In addition there is another kind of memory called the Hard Disk Drive, this sought of memory can be amazingly large as it can be accommodated internally or externally. Hard Drive (HDD) Is Non-volatile secondary storage. It keeps your files, programs, and operating system saved even when the computer is turned off, with large capacity (often hundreds of GBs to several TBs).
Well, there are various other kinds of memory and drives however the above are the most commonly used globally.
https://www.enterprisestorageforum.com/hardware/types-of-computer-memory/