There are a lot of mistakes in chatGPT responses. If you would use chatGPT to learn to code you will make a big mistake. It can be helpful but if you don't know the thing you will not know if AI is correct or not.