Dont use a sledgehammer to pound a nail. Spellcheck a la 1985 can answer such a question.
Granted, a lot of website have an explanation, too, but most of the time I am just not interested in it and scroll past it. I just want to see the code, I know the theory, otherwise I'd ask about it
And you could just ask the LLM to only answer with the code...