Infrared light, also known as infrared radiation, is a type of light that can no be seen but it can be felt from the heat that it generates. The spectrum of wavelengths that comprise the infrared light is given from 700 nanometers, which is the edge of visible red light, up to 1 millimeter of wavelength. Near-Infrared light is the one that can reach the highest temperature, reaching from 3000 to 5200 K. Therefore, a super-powerful flashlight heated up to 3600 K can be given off infrared light.
Whether you get the metal or hydrogen during electrolysis depends on the position of the metal in the reactivity series: the metal will be produced if it is less reactive than hydrogen. hydrogen will be produced if the metal is more reactive than hydrogen.