I'm asking based on seeing something in this led light ad about hard wiring the light presumably into a box.
https://www.amazon.com/gp/product/B07DNPL2VC/?tag=atomicindus08-20
It
The ad appears to suggest a buyer cut the included cord then attach it to the wires in the box that would otherwise support the light fixture.
Does code allow connecting general use cords to installed wire? I've always assumed this would be a violation of something.
BTW, I do understand "code" varies depending on country and the edition of the NEC as well as possible local regulations. So I'm asking this as a general question.
https://www.amazon.com/gp/product/B07DNPL2VC/?tag=atomicindus08-20
It
The ad appears to suggest a buyer cut the included cord then attach it to the wires in the box that would otherwise support the light fixture.
Does code allow connecting general use cords to installed wire? I've always assumed this would be a violation of something.
BTW, I do understand "code" varies depending on country and the edition of the NEC as well as possible local regulations. So I'm asking this as a general question.
