Electrical – ceiling fixture wires

ceilingelectricallight-fixture

meant to change a lightbulb and the whole light
fixture came down. was confused and didnt pay attention when i took out a wire. any help really appreciated. from the ceiling i see 1 black and 1 white wire connected and 2 brown wires. on the fixture one black and one white, which were connected to the brown ones im guessing. i wasnt thinking and jumped the gun. whats the easiest way to figure this out? thanks in advanceenter image description hereenter image description here

Best Answer

Looks like a typical switch loop, where you have a power cable coming into the box, and another cable acts as an out and back in, though the switch, for the hot leg.

enter image description here

Connect the black and white of your fixture to the two whites in either configuration. (Technically, the white coming back from the switch is your "hot", so connect that to black if you know which is which. It should've been labelled by the installer.)