It’s easier to stay motivated when you’re doing something you want to do, something nobody is forcing you to do.
But of course, you can’t only do whatever you want in this life (lol), so when I “don’t feel like” doing stuff I have to do, I like to listen to music. It makes me enjoy the moment.
Learn better project management. No joke . If your goal is “I’m going to finish the Front-End Career Path”, that’s great as a birds eye view, but it’s not granulate enough to guide you through. Say instead “I’m going to put aside this 30 mins a day to study coding. I’m going to put it in my calendar so I don’t forget and I visualize my commitment”.