How does convection cool the whole of refrigerator?

Convection does not cool the whole refrigerator. Convection is the transfer of heat through the movement of a fluid. In the context of a refrigerator, convection occurs within the air inside the refrigerator. As the warm air inside the refrigerator rises, it is replaced by cooler air from the bottom. This cycle of rising warm air and sinking cool air helps to distribute the cold air throughout the refrigerator. However, convection is not the only mechanism by which a refrigerator cools. The main cooling mechanism in a refrigerator is the compressor. The compressor compresses the refrigerant gas, which causes it to heat up. The heated gas is then passed through a condenser, which cools it down and turns it back into a liquid. The liquid refrigerant is then passed through an expansion valve, which allows it to expand and cool down even further. The cooled refrigerant is then passed through an evaporator, where it absorbs heat from the air inside the refrigerator. The refrigerant is then pumped back to the compressor, and the cycle repeats.