Why can we assign console.log to a variable

I am confused how we can assign console.log(`${tempCel} to ${tempFar}. What are we truly displaying?

const tempCel = Number(prompt("Enter a temperature in Celsius degrees:"));
const tempFar = tempCel * 9 / 5 + 32;
console.log(`${tempCel}°C = ${tempFar}°F`);