“A ship is always safe at the shore, but that is not what it is built for.”
— Albert Einstein
If you want to learn new things, you will have to go through all this in the beginning but there will be a time when you will look back and laugh at these days. So, do not quit.
What I have understood from your post is that you are new to coding. Since there is limited information in your post, so I would rather give a generic answer.
This is a tricky situation, you take longer to complete your tasks and sometimes stuck for hours with no progress.
It did happen to me too. The first thing that you need is, someone around you who is good at coding.
Befriend a developer who can help you when you are stuck. Make sure that you are not disturbing him\her too much.
Whenever you are stuck, try to search on internet and get an answer. If still don't get an answer; note down your question.
I would suggest that take all your open queries and if possible try to meet this fellow two or three times a day (morning, afternoon and evening). Limit each meeting to 5-10 minutes and ask all your queries everyday.
You will gradually see that your dependency on this fellow will gradually reduce. But the key is, don't stop self learning and be completely dependent on your helping hand.
And this is a faster way to learn and achieve your goal.
You can do it by self learning too but that will be a time taking affair.
When you are new to coding, a helping hand is your best bet.