Electroretinography (ERG) is a diagnostic test that measures the electrical activity of the retina in response to light stimuli. It is used to assess the functioning of the photoreceptor cells (rods and cones), the inner retinal cells, and the overall health of the retina. In pediatrics, ERG can be crucial for diagnosing various retinal disorders and guiding treatment plans.