Originally Posted by smohr33
When you cut the sheathing off the extension cord, the wires should have white or black insulation. If not though, try to follow the wires from the prong, the larger prong is the neutral which is the white wire.
If you're going to switch it, why not hardwire it? If you're hanging this on the wall, you could use the rooms existing wiring or daisy chain it, and put a switch on the wall next to it or add a switch next to an existing light switch.
^this. No extension cords. Buy some romex & daisy chain off an existing light switch. wht-wht, blk-blk, will prob be no ground. GL