It takes some practice to learn how to work with chatGTP. As long as you know what you want, you can iterate with chatGTP until you get the desired result. Don't trust it blindly. ChatGPT coding Coding with ChatGPT, 5 limitations to keep in mind