Question: why aluminum foil on windows?
Answer: People mainly use tin foil to prevent heat that's coming through the windows. Aluminum is resistant to heat, so it stops heat from the sun. People usually cover the inside of the window with foil using tapes. Since there's no direct sunlight coming in, the temperature inside the house stays lower than outside.