Don't beat yourself up when you find it challenging to memorize code, language or library syntax. They have documentation and you've chatGPT so feel free to reference it. The syntax will stick to your memory on frequent use.