When you can't get something done, or when you can't understand something, eg when learning on Udemy:
1) Try to find a working example of what you want to do, eg on another web site. Copy and paste and change to your needs. I see Rob doing a lot of copying of existing code from various web sites. This is a good thing in web development.
2) When you are stuck, watch Rob do the work. Then try to do it yourself without watching the video and without referring to what Rob did. Then try again the next day, or when you have time.
Keep at it. Don't give up. And remember many of us give ourselves an unnecessary hard time, including me.
Note: Rob is one of the Udemy trainers.