Drilling down on how JS engine (compiler) process your code is one way to learn JS, might be the longest way but if that’s what your brain demanded, you shall go down the rabbit hole
Most books will focus on practical point of view like how to use JS to create something, breaking down each part and explain how to use it. Mostly not explaining in detail how everything works under the hood.
YDKJS have something on Scope and explain what compiler does in context of scoping, you might want to learn compiler processes with that chunk instead of all at once. This will require you to find every feature JS has, learn it, see how it works with other features if there are overlap.
If that’s what you are curious about right now, go for it.
Here are 2 videos I found helpful regarding this matter:
- Event Loop https://youtu.be/8aGhZQkoFbQ
- JS Engine https://youtu.be/p-iiEDtpy6I