When you feel like quitting, remember why you started.
When you are determined to do something and later realize the task is harder than you thought or perhaps you just aren’t getting anywhere, don’t just give up. There was a reason why you took on this task or why you decided to take this journey, don’t forget that. If you are not getting anywhere, change your method, if the task feels like it’s too hard, break it down into smaller pieces, but try again. You only fail when you give up, not when you fall down or make a few mistakes.