The type of object in space that gives out its own light is a star.

Quick Scoop

When we ask “what type of object in space gives out its own light?” the standard science answer is: stars are the objects that produce their own light, rather than just reflecting it. Stars (like our Sun) shine because nuclear fusion in their cores creates huge amounts of energy, released as light and heat. This is different from planets and moons, which only reflect starlight instead of making their own.