Code quality is an approximation of how long-term useful and long-term maintainable the code is.

Code quality is a loose approximation of how long-term useful and long-term maintainable the code is.

Code that is thrown away tomorrow: Low quality.
Code that is being carried over from product to product, developed further, maybe even open sourced after establishing its value: High quality.