I've heard these terms used in different blogs and was curious if there was a difference.
Asked
Active
Viewed 180 times
2 Answers
2
A COMPILER converts source code (the code you've written) into machine code for the computer to understand.
An INTERPRETER directly executes your code without previously compiling it into machine code.

Jellal Saleh
- 36
- 1
0
Javascript can be run with just an interpreter, the program that parses the script and executes the code.
However, some environments (like Chrome's V8 Javascript engine), will use a compiler to convert some of the Javascript code into a lower level language, which it can execute faster. It's a big part of why Javascript can be executed at near-native speeds now.

TbWill4321
- 8,626
- 3
- 27
- 25