Some components have 2 pins, one being longer
In this case such as in electrolytic capacitors and leds, the longer pin is always the positive pin. You can tell the negative side of rectifier diodes by the gray stripe. That side will only allow incoming negative, or outgoing positive. Its if a zener, current can only reverse if voltage reaches specification according to zener value.