As others have said, come up with a project that you want to finish. This will give you some practical experience with whatever you are learning and make it more interesting. Having a concrete goal will help maintain interest. Ultimately you have to want to learn, and something that piques your interest will go a long way.
For me I wanted to learn nodejs from a web perspective (I had used it before to build a syncing system with kafka) so I built a fantasy football draft board for the leagues I am in. Using something like this teaches you so much more than a todo app or hello world.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.