how is javascript compiled
JavaScript has no compilation step.
Instead, an interpreter in the browser reads over the JavaScript code,
interprets each line, and runs it. More modern browsers use a technology
known as Just-In-Time (JIT) compilation
//read more at