There is no way around acquiring knowledge about JavaScript and gaining experience in writing it.
However, the more you think, eat, and sleep JavaScript the faster you will see an improved understanding. One thing you should do early on the technical side:
Whenever you read something about JS, spin up a console and try it out.