If you imagine a product as the human body, the bones represent the code which give it structure.

The organs represent the UX design: measuring and optimizing against input for supporting life functions.

And UI design represents the cosmetics of the body; its presentation, its senses and reactions.

Difference between UI & UX

Difference between UI & UX