what is a diode and how is it used in electronics ?
i recently salvaged a motherload of switches and other random electrical parts from a broken dvd player. i found a black cilinder with a silver band painted around it. i went online and found out its a diode but it did not clarify what its function is to a extent that a less experienced person would understand it
just tell me what does it do and whats it used in (put it in lamens terms so i can get a good understanding)