I was looking for the smallest simplest way to power an LED from USA household current which is 120 volts AC. At the dollar store I found an LED night light and opened it up expecting to see a tiny transformer or something to power the led but instead I found this: <see attached picture>.
I am dumb founded how to explain how this works, and when I checked online for led's powered by 120v ac nothing comes close to this circuit I found. Mean while, it works perfectly. What is going on here?
![magic_led_120v.jpg magic_led_120v.jpg](https://www.electro-tech-online.com/data/attachments/105/105177-5b32a9f979fab8ccd7065cffed4416eb.jpg)
I am dumb founded how to explain how this works, and when I checked online for led's powered by 120v ac nothing comes close to this circuit I found. Mean while, it works perfectly. What is going on here?
![magic_led_120v.jpg magic_led_120v.jpg](https://www.electro-tech-online.com/data/attachments/105/105177-5b32a9f979fab8ccd7065cffed4416eb.jpg)