Trying making something with it, instead of just learning the language. If you're applying it somewhere, you'll learn a lot more than if you're just trying to learn the syntax and functions, because then you'll know what it actually does and how it behaves in a program
The way I learned JavaScript was by thinking about what I wanted to do, and then destructuring that individual steps that I could act on. I then looked up how to do those individual steps and wrote them out. After some debugging and looking up errors, it worked!