2 ms·
Normally JavaScript is a JIT compiled language because of the need to do stuff like hoisting etc.
by bryanrasmussen 7y ago
Normally JavaScript is a JIT compiled language because of the need to do stuff like hoisting etc.
- Stratoscope 7y agoJust a nit on the JIT... JavaScript is almost always compiled, regardless of whether there is a JIT or not. A typical JavaScript system first compiles the JS source code into bytecode. Then it starts executing (interpreting) the bytecode. If there is a JIT, that is a second compiler. It monitors the execution of the bytecode to find hot spots where it compiles the bytecode into machine language.
- bryanrasmussen 7y agoyeah but I was just nitpicking on the "interpreted" statement above. What comes around goes around I guess.