Coding is hard. You will get stuck. Even experienced coders get stuck. The key is knowing how to get unstuck.
It takes time to get good at coding. You wouldn't expect to beat a chess master after playing for 3 months. Don't expect to build the next Facebook after coding for 3 months.
Keep practicing coding every day and hanging out with other people who code, and you will become a job-ready coder.
First, read the documentation or error message. A key skill that good coders have is the ability to interpret and then follow instructions.
If that didn't help, search Google. Good Google queries take a lot of practice. When you search Google, you usually want to include the language or framework you're using. You also want to limit the results to a recent period.