What you see as junk may be worth something to someone else. Ask yourself, “Is this useable or easily salvageable?” If so, first stop should be a charity store. If not, then don’t throw it in the trash, instead take it to the tip.
Many electrical products contain materials that are damaging to the environment if not disposed of properly. Sometimes, old electronics are sought after by collectors—relevant if you have a Betamax