For simple stuff such as those lights, polarity is usually not a problem when using AC.
In case of AC (Alternating Current), instead of having a + and - pole, you have a Line and a Neutral terminal.
The Line terminal goes + … - … + … - … + … - with time and the Neutral stays at 0.
When connecting to LEDs and such, you have an AC to DC converter, which tends to be fine no matter which pin you put in which hole.
piccolo@ani.social 2 months ago
Let me introduce you to the FULL BRIDGE RECTIFIER!