I dislike how people say "Learn to code" and that automatically implies that it's HTML, CSS and JS: There is a whole world out of that.
To expand a bit, the most fun part of coding is clever tricks based on understanding a system. But with building a website, you get nice results by just treating coding as a complicated way to do photoshop, and settle for this.